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

合并分支 'Branch_liuzhen' 到 'master'

首页金额统计修改



查看合并请求 !253
@@ -140,7 +140,7 @@ class User extends Api @@ -140,7 +140,7 @@ class User extends Api
140 $total_money = 0; 140 $total_money = 0;
141 foreach ($plus as $v) { 141 foreach ($plus as $v) {
142 if($v['before'] > $v['after']) { 142 if($v['before'] > $v['after']) {
143 - $total_money = bcmul($total_money,$v['money'],2); 143 + $total_money = bcsub($total_money,$v['money'],2);
144 } else { 144 } else {
145 $total_money = bcadd($total_money,$v['money'],2); 145 $total_money = bcadd($total_money,$v['money'],2);
146 } 146 }