limu 9 months ago
parent 18ea4eb31d
commit a10f5979ce
  1. 1
      app/command/dayUserGrowth.php

@ -36,6 +36,7 @@ class dayUserGrowth extends Command
foreach ($user as $k => $v) {
if ($v['all_value'] > 0) {
$growth_num = bcdiv($v['all_value'], $v['growth_rate'], 2);
$growth_num = $growth_num+$v['brokerage_price'];
userModel::getDB()
->where('uid', $v['uid'])
->update(['all_value' => 0, 'brokerage_price' => $growth_num]);

Loading…
Cancel
Save