Your Name 3 лет назад
Родитель
Сommit
cdf036a974
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      service/bill/lib/Cron.php

+ 5 - 2
service/bill/lib/Cron.php

@@ -437,10 +437,13 @@ class Cron
                 $data['ws_cash']=$cash['total']*(-1);
             }
             #已审核待发放提现
-            // $data['df_cash']=0;
+            $data['df_cash']=0;
             $where['status']=1;
             $cash=Dever::db('bill/tixian')->getdfCash($where);
-            $data['cash'] = $data['xc_cash'] + $data['ws_cash'] + $cash['total'];
+            if($cash){
+                $data['df_cash'] = $cash['total'] *(-1);
+            }
+            $data['cash'] = $data['xc_cash'] + $data['ws_cash'] + $data['df_cash'];
 
             if (!$info) {
                 Dever::db('bill/cash_up_stat')->insert($data);