dever 6 年之前
父节点
当前提交
3f4bdeea6a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      main/lib/Cron.php

+ 2 - 0
main/lib/Cron.php

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