【修复】简陋区自动关闭
This commit is contained in:
parent
a1ada10b20
commit
77f6f91cda
|
|
@ -226,7 +226,19 @@ class FuturesOrderCreate extends OrderCreate
|
|||
if ($execute_time) {
|
||||
$cron_model = new Cron();
|
||||
$execute_time += strtotime(date('Ymd'));
|
||||
$cron_model->addCron(1, 0, "订单自动关闭", "CronOrderClose", $execute_time, $order_id);
|
||||
|
||||
$futures_id = $data['futures_id'];
|
||||
$condition = array(
|
||||
['id', '=', $futures_id],
|
||||
);
|
||||
|
||||
$futures_info = model('futures')->getInfo($condition) ?? [];
|
||||
|
||||
if ($futures_info['status'] == 7){
|
||||
$cron_model->addCron(1, 0, "订单自动关闭", "CronOrderClose", time() + 5 * 60, $order_id);
|
||||
}{
|
||||
$cron_model->addCron(1, 0, "订单自动关闭", "CronOrderClose", $execute_time, $order_id);
|
||||
}
|
||||
} else {
|
||||
$this->addOrderCronClose($order_id, $shop_goods_list['site_id']);//增加关闭订单自动事件
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue