...
|
...
|
@@ -140,9 +140,9 @@ class User extends Api |
|
|
$total_money = 0;
|
|
|
foreach ($plus as $v) {
|
|
|
if($v['before'] > $v['after']) {
|
|
|
$total_money -= $v['money'];
|
|
|
$total_money = bcmul($total_money,$v['money'],2);
|
|
|
} else {
|
|
|
$total_money += $v['money'];
|
|
|
$total_money = bcadd($total_money,$v['money'],2);
|
|
|
}
|
|
|
}
|
|
|
$data = [
|
...
|
...
|
|