diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index 643158f9..e46482e3 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -1310,16 +1310,17 @@ class Clues extends HD_Controller $this->load->library('receiver/customers_entity'); $this->customers_entity->syn_clues($customers_id, $re['id']); //短信通知店长 -// $this->load->model('app/licheb/app_licheb_users_model'); -// $where = array('biz_id' => $biz['biz_id'], 'status' => 1, 'group_id' => 2); -// $res_u = $this->app_licheb_users_model->select($where); -// if ($res_u) { -// foreach ($res_u as $v) { -// if ($re['biz_id'] != 1) { + $this->load->model('app/licheb/app_licheb_users_model'); + $where = array('biz_id' => $biz['biz_id'], 'status' => 1, 'group_id' => 2); + $res_u = $this->app_licheb_users_model->select($where); + if ($res_u) { + foreach ($res_u as $v) { + if ($re['biz_id'] != 1) { // b2m_send_sms($v['mobile'], '【理车宝】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); -// } -// } -// } + ems_sms($v['mobile'], '您好,门店新增了1个客户线索,请及时到微信小程序"理车宝”进行查看。'); + } + } + } } $this->clues_model->update(['rec_time' => $info['rec_time'], 'p_time' => date('Y-m-d H:i:s')], ['id' => $re['id']]); return $this->show_json(SYS_CODE_SUCCESS, '修改成功'); diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 649da20d..fc5e06a9 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -231,7 +231,8 @@ class Licheb extends HD_Controller $visit_count = $this->mdCustomerVisitData->count_visit($where_v); if ($visit_count) {//发送短信 - b2m_send_sms($value['mobile'], '【好店云】您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~'); +// b2m_send_sms($value['mobile'], '【好店云】您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~'); + ems_sms($value['mobile'], '您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~ '); $log[] = array('id' => $id, 'mobile' => $value['mobile'], 'count' => $visit_count); } } diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 96db1957..20ad8b3e 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -1168,7 +1168,8 @@ class Customers extends Wxapp } //发送短信 $num = $re['mobile'] ? substr($re['mobile'], -4) : 0; - b2m_send_sms($admin['mobile'], '【好店云】您有一个新的客户需要跟进,手机尾号为' . $num . '。请及时到小程序“理车宝-客户”进行操作,祝您成单!'); +// b2m_send_sms($admin['mobile'], '【好店云】您有一个新的客户需要跟进,手机尾号为' . $num . '。请及时到小程序“理车宝-客户”进行操作,祝您成单!'); + ems_sms($admin['mobile'], '您有一个新的客户需要跟进。请及时到小程序“理车宝-客户”查看,祝您成单!'); } } throw new Exception('分配成功', API_CODE_SUCCESS);