dever 3 年之前
父節點
當前提交
67b3c1ad60
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/option/lib/Cash.php

+ 1 - 1
service/option/lib/Cash.php

@@ -247,7 +247,7 @@ class Cash
         if ($account_cash) {
             foreach ($account_cash as $k => $v) {
                 $cash = Dever::db('option/bill_jiaofu')->getTotal(array('where_end' => $info['jiaofu_date'], 'where_type' => $v['type'], 'where_aid' => $v['aid'], 'where_mid' => $v['mid'], 'where_status' => 2));
-                if ($cash) {
+                if ($cash && $cash['total'] > 0) {
                     $update = array();
                     $update['where_id'] = $v['id'];
                     $update['daijiaofu'] = $v['daijiaofu'] - $cash['total'];