作者 Cool
1 个管道 的构建 通过 耗费 1 秒

首页金额统计修改

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