dever 3 years ago
parent
commit
e0d201056b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/shop/lib/Cron.php

+ 2 - 0
app/shop/lib/Cron.php

@@ -39,6 +39,7 @@ class Cron
             for($i=0; $i<=$day; $i++) {
                 $where['start'] = $start + 86400*$i;
                 $where['end'] = $start + 86400*$i + 86399;
+                $data = array();
                 $data['shop_id'] = $v['id'];
                 $data['day'] = $where['start'];
                 $info = Dever::db('shop/sell_stat')->find($data);
@@ -75,6 +76,7 @@ class Cron
             $where['shop_id'] = $v['id'];
             $where['start'] = $start;
             $where['end'] = $end;
+            $data = array();
             $data['shop_id'] = $v['id'];
             $data['month'] = $start;
             $info = Dever::db('shop/sell_stat_month')->find($data);