edit-sylive-wx

This commit is contained in:
lccsw
2022-10-21 21:18:09 +08:00
parent a2cb9dc748
commit 74feaa8d6d
7 changed files with 34 additions and 6 deletions
+1
View File
@@ -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;
}
+19 -1
View File
@@ -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);
}
}