dever 3 年之前
父節點
當前提交
adf6c6d9b1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/cash/lib/Set.php

+ 3 - 0
app/cash/lib/Set.php

@@ -8,6 +8,9 @@ class Set
 {
     public function getCash($cash)
     {
+        if (!$cash || $cash <= 0) {
+            return 0;
+        }
         return round($cash, 2);
     }
     public function info($audit_type, $audit)