修改短信验证码

This commit is contained in:
lcc
2025-09-11 10:27:45 +08:00
parent 7f4f2396c1
commit b8e1889615
5 changed files with 22 additions and 13 deletions
+2 -1
View File
@@ -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);
}
}
+3 -2
View File
@@ -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'] . '新增了一个订单。');
}
}
+10 -6
View File
@@ -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);