diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index e46482e3..985e0632 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -537,7 +537,8 @@ class Clues extends HD_Controller if ($res_u) { foreach ($res_u as $v) { if ($info['biz_id'] != 1) { - b2m_send_sms($v['mobile'], '【好店云】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); +// b2m_send_sms($v['mobile'], '【好店云】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); + ems_sms($v['mobile'], '您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); } } } @@ -797,7 +798,8 @@ class Clues extends HD_Controller if ($res_u) { foreach ($res_u as $v) { if ($re['biz_id'] != 1) { - b2m_send_sms($v['mobile'], '【好店云】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); +// b2m_send_sms($v['mobile'], '【好店云】您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); + ems_sms($v['mobile'], '您好,门店新增了1个客户线索。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); } } } diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index fc5e06a9..f89e89bd 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -303,7 +303,8 @@ class Licheb extends HD_Controller $Customers_count = $this->mdCustomers->count($where_c); if ($Customers_count) { //发送短信 - b2m_send_sms($value['mobile'], '【好店云】您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); +// b2m_send_sms($value['mobile'], '【好店云】您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); + ems_sms($value['mobile'], '您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); $log[] = array('id' => $id, 'mobile' => $value['mobile'], 'count' => $Customers_count); } } diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index f452aac2..3bc381f3 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -125,8 +125,9 @@ class Cusorder extends Wxapp $users = $this->app_user_model->select(array('status' => 1, 'group_id' => 4, 'biz_id like "%,' . $this->biz_id . ',%"' => null)); if ($users) { foreach ($users as $v) { - $content = "【好店云】亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'; - b2m_send_sms($v['mobile'], $content); +// $content = "【好店云】亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'; +// b2m_send_sms($v['mobile'], $content); + ems_sms($v['mobile'], "亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'); } } diff --git a/api/controllers/wxapp/licheb/Sms.php b/api/controllers/wxapp/licheb/Sms.php index 42b8dad2..1fc3dfa7 100644 --- a/api/controllers/wxapp/licheb/Sms.php +++ b/api/controllers/wxapp/licheb/Sms.php @@ -45,8 +45,10 @@ class Sms extends Wxapp $code = random_string('numeric', 6); $mc->save($key, $code, 600); } - $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; - b2m_send_sms($mobile, $content); +// $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; +// b2m_send_sms($mobile, $content); + ems_sms($mobile, "您的验证码为:{$code},请勿泄露于他人!"); + $msg = '发送成功'; throw new Exception($msg, API_CODE_SUCCESS); } @@ -68,8 +70,9 @@ class Sms extends Wxapp throw new Exception('该客户不可操作', ERR_PARAMS_ERROR); } $mobile = $row['mobile']; - $content = "【{$this->smsSign}】" . $content; - b2m_send_sms($mobile, $content); +// $content = "【{$this->smsSign}】" . $content; +// b2m_send_sms($mobile, $content); + ems_sms($mobile, $content); $this->load->library('receiver/customers_entity'); $this->customers_entity->add_log_visit($id, $uid, $this->session['uname'], $content, 1, 1); throw new Exception('短信发送成功', API_CODE_SUCCESS); @@ -91,8 +94,9 @@ class Sms extends Wxapp throw new Exception('参数错误', ERR_PARAMS_ERROR); } $mobile = $row['mobile']; - $content = "【{$this->smsSign}】" . $content; - b2m_send_sms($mobile, $content); +// $content = "【{$this->smsSign}】" . $content; +// b2m_send_sms($mobile, $content); + ems_sms($mobile, $content); $this->load->library('receiver/customers_entity'); $this->customers_entity->add_log($row['id'], $uid, $this->session['uname'], $content, 1); throw new Exception('短信发送成功', API_CODE_SUCCESS); diff --git a/home/controllers/h5/Common.php b/home/controllers/h5/Common.php index a0320418..5c15adb4 100644 --- a/home/controllers/h5/Common.php +++ b/home/controllers/h5/Common.php @@ -69,8 +69,9 @@ class Common extends HD_Controller $code = random_string('numeric', 4); $mc->save($key, $code, 600); } - $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; - b2m_send_sms($mobile, $content); +// $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; +// b2m_send_sms($mobile, $content); + ems_sms($mobile, "您的验证码为:{$code},请勿泄露于他人!"); $this->success('', '发送成功'); } catch (Exception $e) { $this->fail('', $e->getMessage());