From d847169cf8f6172d5c9a2239bf34231247c7e5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Wed, 6 May 2026 10:20:58 +0800 Subject: [PATCH] sms --- api/controllers/plan/Licheb.php | 8 ++++---- api/controllers/wxapp/licheb/Cusorder.php | 6 +++--- api/controllers/wxapp/licheb/Customers.php | 4 ++-- api/controllers/wxapp/licheb/Sms.php | 18 +++++++++--------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 049b12b8..ed07c587 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -232,8 +232,8 @@ class Licheb extends HD_Controller $visit_count = $this->mdCustomerVisitData->count_visit($where_v); if ($visit_count) {//发送短信 -// b2m_send_sms($value['mobile'], '【好店云】您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~'); - ems_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); } } @@ -304,8 +304,8 @@ class Licheb extends HD_Controller $Customers_count = $this->mdCustomers->count($where_c); if ($Customers_count) { //发送短信 -// b2m_send_sms($value['mobile'], '【好店云】您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!'); - ems_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 f6838561..d9e28a3e 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -127,9 +127,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); - ems_sms($v['mobile'], "亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'); + $content = "【好店云】亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'; + b2m_send_sms($v['mobile'], $content); +// ems_sms($v['mobile'], "亲爱的客户成功经理,您管理的" . $biz['biz_name'] . '新增了一个订单。'); } } diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 8d673216..27cbb761 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -1189,8 +1189,8 @@ class Customers extends Wxapp } //发送短信 $num = $re['mobile'] ? substr($re['mobile'], -4) : 0; -// b2m_send_sms($admin['mobile'], '【好店云】您有一个新的客户需要跟进,手机尾号为' . $num . '。请及时到小程序“理车宝-客户”进行操作,祝您成单!'); - ems_sms($admin['mobile'], '您有一个新的客户需要跟进。请及时到小程序“理车宝-客户”查看,祝您成单!'); + b2m_send_sms($admin['mobile'], '【好店云】您有一个新的客户需要跟进,手机尾号为' . $num . '。请及时到小程序“理车宝-客户”进行操作,祝您成单!'); +// ems_sms($admin['mobile'], '您有一个新的客户需要跟进。请及时到小程序“理车宝-客户”查看,祝您成单!'); } } throw new Exception('分配成功', API_CODE_SUCCESS); diff --git a/api/controllers/wxapp/licheb/Sms.php b/api/controllers/wxapp/licheb/Sms.php index 1fc3dfa7..32f89ed7 100644 --- a/api/controllers/wxapp/licheb/Sms.php +++ b/api/controllers/wxapp/licheb/Sms.php @@ -45,9 +45,9 @@ class Sms extends Wxapp $code = random_string('numeric', 6); $mc->save($key, $code, 600); } -// $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; -// b2m_send_sms($mobile, $content); - ems_sms($mobile, "您的验证码为:{$code},请勿泄露于他人!"); + $content = "【{$this->smsSign}】" . "您的验证码为:{$code},请勿泄露于他人!"; + b2m_send_sms($mobile, $content); + //ems_sms($mobile, "您的验证码为:{$code},请勿泄露于他人!"); $msg = '发送成功'; throw new Exception($msg, API_CODE_SUCCESS); @@ -70,9 +70,9 @@ class Sms extends Wxapp throw new Exception('该客户不可操作', ERR_PARAMS_ERROR); } $mobile = $row['mobile']; -// $content = "【{$this->smsSign}】" . $content; -// b2m_send_sms($mobile, $content); - ems_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); @@ -94,9 +94,9 @@ class Sms extends Wxapp throw new Exception('参数错误', ERR_PARAMS_ERROR); } $mobile = $row['mobile']; -// $content = "【{$this->smsSign}】" . $content; -// b2m_send_sms($mobile, $content); - ems_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);