修改客户未分配,发短信通知脚本
This commit is contained in:
@@ -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) {
|
||||
//发送短信
|
||||
|
||||
Reference in New Issue
Block a user