edit-plan-syt-subscribemsg

This commit is contained in:
lccsw
2023-03-24 09:35:08 +08:00
parent 80cbd4ece6
commit 54e40d2408
+6 -1
View File
@@ -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);