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

12

... ... @@ -398,7 +398,7 @@ class PersonalcenterController extends WeChatBaseController{
foreach ($money_expend as $key => $val){
$money += $val['money'];
}
$money = number_format($money,2);
$this -> assign('status',$balance['status']);
$this -> assign('money',$money);
return $this -> fetch();
... ... @@ -681,6 +681,8 @@ class PersonalcenterController extends WeChatBaseController{
foreach ($indent_money as $key => $val){
$total_money += $val['money'];
}
//保留两位小数
$total_money = number_format($total_money,2);
// $total_money = $total_money-$total_money*0.006;
$this -> assign('total_money',$total_money);
... ...