正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -398,7 +398,7 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -398,7 +398,7 @@ class PersonalcenterController extends WeChatBaseController{ | ||
398 | foreach ($money_expend as $key => $val){ | 398 | foreach ($money_expend as $key => $val){ |
399 | $money += $val['money']; | 399 | $money += $val['money']; |
400 | } | 400 | } |
401 | - | 401 | + $money = number_format($money,2); |
402 | $this -> assign('status',$balance['status']); | 402 | $this -> assign('status',$balance['status']); |
403 | $this -> assign('money',$money); | 403 | $this -> assign('money',$money); |
404 | return $this -> fetch(); | 404 | return $this -> fetch(); |
@@ -681,6 +681,8 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -681,6 +681,8 @@ class PersonalcenterController extends WeChatBaseController{ | ||
681 | foreach ($indent_money as $key => $val){ | 681 | foreach ($indent_money as $key => $val){ |
682 | $total_money += $val['money']; | 682 | $total_money += $val['money']; |
683 | } | 683 | } |
684 | + //保留两位小数 | ||
685 | + $total_money = number_format($total_money,2); | ||
684 | // $total_money = $total_money-$total_money*0.006; | 686 | // $total_money = $total_money-$total_money*0.006; |
685 | $this -> assign('total_money',$total_money); | 687 | $this -> assign('total_money',$total_money); |
686 | 688 |
-
请 注册 或 登录 后发表评论