diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 309bb414..649da20d 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -14,6 +14,7 @@ class Licheb extends HD_Controller parent::__construct(); $this->log_file = 'licheb.log'; $this->load->model('receiver/receiver_customers_model', 'mdCustomers'); + $this->load->model("biz/biz_model", 'mdBiz'); } /** @@ -293,7 +294,11 @@ class Licheb extends HD_Controller if ($biz_id == '1') { continue; } + $bizRow = $this->mdBiz->get(['id'=>$biz_id]); $where_c = array("biz_id in ($biz_id)" => null, 'status' => 0, 'admin_id' => 0); + if($bizRow['type']==Biz_model::BIZ_TYPE_4s){ + $where_c['un_lock'] = 1; + } $Customers_count = $this->mdCustomers->count($where_c); if ($Customers_count) { //发送短信