修改客户未分配,发短信通知脚本

This commit is contained in:
lcc
2025-08-04 08:47:48 +08:00
parent 485af70d5e
commit d97781842b
+5
View File
@@ -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) {
//发送短信