注释短信验证码

This commit is contained in:
lcc
2025-09-02 11:07:56 +08:00
parent e5b7ac5b6d
commit fb6644364a
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -39,11 +39,11 @@ class Sms extends BaseController
if (!$redis->get($cacheKey)) {
$this->load->helper('string');
$code = random_string('numeric', 4);
// $content = "【" . HDY_SMS_SIGN . "】" . "您的验证码为:{$code},请勿泄露于他人!";
// b2m_send_sms($mobile, $content);
$content = "" . HDY_SMS_SIGN . "" . "您的验证码为:{$code},请勿泄露于他人!";
b2m_send_sms($mobile, $content);
//签名还未审核通过
$content = "您的验证码为:{$code},请勿泄露于他人!";
ems_sms($mobile, $content);
// $content = "您的验证码为:{$code},请勿泄露于他人!";
// ems_sms($mobile, $content);
$redis->save($cacheKey, $code, 600);
}
$this->return_response([], '发送成功');
+4 -4
View File
@@ -120,11 +120,11 @@ class Login extends BaseController
$code = $redis->get($cacheKey);
if (!$code) {
$code = rand(100000, 999999);
// $content = "【" . HDY_SMS_SIGN . "】" . "您的验证码为:{$code},请勿泄露于他人!";
// b2m_send_sms($phone, $content);
$content = "" . HDY_SMS_SIGN . "" . "您的验证码为:{$code},请勿泄露于他人!";
b2m_send_sms($phone, $content);
//签名还未审核通过
$content = "您的验证码为:{$code},请勿泄露于他人!";
ems_sms($phone, $content);
// $content = "您的验证码为:{$code},请勿泄露于他人!";
// ems_sms($phone, $content);
$redis->save($cacheKey, $code, 5 * 60);
}
$this->return_response('短信验证码发送成功, 请注意查收!');