|
@@ -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));
|
|
|
}
|
|
|
}
|
|
|
}
|