rabin 3 éve
szülő
commit
fa99416a6e
1 módosított fájl, 5 hozzáadás és 4 törlés
  1. 5 4
      service/bill/lib/Cron.php

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

@@ -282,10 +282,10 @@ class Cron
         
         for($i=0; $i<=$day; $i++) {
             $where = array();
-            $where['start'] = $start + 86400*$i;
-            $where['end'] = $start + 86400*$i + 86399;
+            $where['fstart'] = $start + 86400*$i;
+            $where['fend'] = $start + 86400*$i + 86399;
             $data = array();
-            $data['day'] = $where['start'];
+            $data['day'] = $where['fstart'];
             $info = Dever::db('bill/cash_in_stat')->find($data);
 
             $where['status'] = 4;
@@ -305,7 +305,8 @@ class Cron
                 $data['goods_cash'] = $cash['total'];
             }
             unset($where['status']);
-
+            $where['start'] = $where['fstart'];
+            $where['end'] = $where['fend'];
             $where['type'] = 1;
 
             $data['zt_cash'] = 0;