edit-plan-syt-subscribemsg
This commit is contained in:
@@ -41,7 +41,12 @@ class Syt extends CI_Controller
|
||||
$size = $this->input->get('size');
|
||||
!$size && $size = 10;
|
||||
$this->load->model('market/market_sylive_subscribemsg_model', 'mdSytSubscribemsg');
|
||||
$date = date('Y-m-d H:i:s', strtotime('+10 minute'));//提前10分钟发送
|
||||
$count = $this->mdSytSubscribemsg->count(['status'=>0]);
|
||||
if($count>5000){
|
||||
$date = date('Y-m-d H:i:s', strtotime('+10 minute'));//提前10分钟发送
|
||||
}else{
|
||||
$date = date('Y-m-d H:i:s');
|
||||
}
|
||||
$where['timeStart<='] = $date;
|
||||
$where['status'] = 0;
|
||||
$count = $this->mdSytSubscribemsg->count($where);
|
||||
|
||||
Reference in New Issue
Block a user