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['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));
             }
         }
     }