dever 6 lat temu
rodzic
commit
3f4bdeea6a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      main/lib/Cron.php

+ 2 - 0
main/lib/Cron.php

@@ -11,10 +11,12 @@ class Cron
         $where['product_id'] = 28;
         $where['type'] = 3;
         $where['status'] = 1;
+        $where['cron_status'] = 1;
         $data = Dever::db('journal/order')->state($where);
         if ($data) {
             foreach ($data as $k => $v) {
                 $this->getpays($v['order_id']);
+                Dever::db('journal/order')->update(array('where_id' => $v['id'], 'cron_status' => 2));
             }
         }
     }