diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index d85b1ae1..beee5d05 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -623,7 +623,9 @@ class Clues extends HD_Controller $this->load->model('app/licheb/app_licheb_users_model'); $where = array('biz_id' => $re['biz_id'], 'status' => 1, 'group_id' => 2); $res_u = $this->app_licheb_users_model->get($where); - b2m_send_sms($res_u['mobile'], '【理车宝】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); + if($re['biz_id'] != 1){ + b2m_send_sms($res_u['mobile'], '【理车宝】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); + } $msg = '转交成功'; } else { diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 4309fee5..71268226 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -150,9 +150,9 @@ class Licheb extends HD_Controller foreach ($res as $key => $value) { $sales_id = $id = $value['id']; $biz_id = intval($value['biz_id']); -// if ($biz_id == 1 || $biz_id == 110) {//门店用户不写入 -// continue; -// } + if ($biz_id == 1) {//门店用户不写入 + continue; + } $where_sal = ['t_day' => $t_day, 'sales_id' => $sales_id, 'biz_id' => $biz_id]; $re_sal = $this->mdCustomerVisitSales->get($where_sal); if (!$re_sal) {//判断当天是否已加入