Your Name 2 年之前
父节点
当前提交
9041e57541
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/card/lib/Manage.php

+ 2 - 2
app/card/lib/Manage.php

@@ -118,8 +118,8 @@ class Manage
             $info['use_cash'] = 0;
         }
         $table['总面值'] = $info['total_cash'];
-        $table['已用面值'] = $info['use_cash'];
-        $table['剩余面值'] = $info['total_cash'] - $info['use_cash'];
+        $table['已用面值'] = round($info['use_cash'],2);
+        $table['剩余面值'] = round(($info['total_cash'] - $info['use_cash']),2);
 
         if ($table) {
             return Dever::table($table);