edit-sylive-wx
This commit is contained in:
@@ -53,6 +53,7 @@ class Plan extends CI_Controller
|
||||
|
||||
$plan[] = array('url' => base_url(array('plan', 'syt', 'subscribemsg')), 'interval' => 1); //私域通模板消息
|
||||
$plan[] = array('url' => base_url(array('plan', 'syt', 'syn_polyv')), 'interval' => 60); //私域通直播间数据同步
|
||||
$plan[] = array('url' => base_url(array('plan', 'syt', 'out_time')), 'interval' => 1); //订单过期
|
||||
$this->plan = $plan;
|
||||
}
|
||||
|
||||
|
||||
@@ -224,5 +224,23 @@ class Syt extends CI_Controller
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
//订单过期
|
||||
public function out_time(){
|
||||
$this->load->model('market/market_sylive_activity_orders_model','mdSytActivityOrders');
|
||||
$this->load->model('market/market_sylive_order_model');
|
||||
//商家订单过期
|
||||
$where = [
|
||||
'expire_time>' => 0,
|
||||
'expire_time<' => time(),
|
||||
'status' => 0
|
||||
];
|
||||
$this->mdSytActivityOrders->update(['status'=>-1],$where);
|
||||
//用户订单过期
|
||||
$where = [
|
||||
'expire_time>' => 0,
|
||||
'expire_time<' => time(),
|
||||
'status' => 0
|
||||
];
|
||||
$this->market_sylive_order_model->update(['status'=>-1],$where);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user