diff --git a/api/controllers/plan/Syt.php b/api/controllers/plan/Syt.php index b4dbf1f6..fdd6375c 100644 --- a/api/controllers/plan/Syt.php +++ b/api/controllers/plan/Syt.php @@ -40,16 +40,17 @@ class Syt extends CI_Controller { $this->load->model('market/market_sylive_subscribemsg_model', 'mdSytSubscribemsg'); $date = date('Y-m-d H:i:s', strtotime('+10 minute'));//提前10分钟发送 + $where['a_id'] = 3; $where['s_time<='] = $date; $where['status'] = 0; - $res = $this->mdSytSubscribemsg->select($where, 'id asc', 1, 200); + $res = $this->mdSytSubscribemsg->select($where, 'id asc', 1, 100); $log = array(); if ($res) { $this->load->model('market/market_sylive_activity_model', 'mdSytActivity'); $wechatS = new WechatServer($this->options); $wechatS->checkAuth(); + $re_a = $this->mdSytActivity->get(array("activityId" => 3, "status" => 0)); foreach ($res as $key => $value) { - $re_a = $this->mdSytActivity->get(array("activityId" => $value['a_id'], "status" => 0)); if ($re_a) { $content = '您预约“' . $re_a['title'] . '”直播已经开始啦!赶紧进入直播间观看直播领取福利吧~'; $temp_arr = array(