dever 3 年之前
父节点
当前提交
7b7162ab4b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      service/option/lib/Cash.php

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

@@ -246,6 +246,7 @@ class 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' => $info['aid'], 'where_status' => 2));
                     if ($cash) {
+                        $update = array();
                         $update['where_id'] = $v['id'];
                         $update['daijiaofu'] = $v['daijiaofu'] - $cash['total'];
                         $update['jiaofu'] = $v['jiaofu'] + $cash['total'];