From fb6644364a2d906093bdcb12c2f3b6e2b465db2b Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Tue, 2 Sep 2025 11:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=9F=AD=E4=BF=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/admin/controllers/auto/Sms.php | 8 ++++---- agent/admin/controllers/pingan/Login.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/agent/admin/controllers/auto/Sms.php b/agent/admin/controllers/auto/Sms.php index cec20130..ab296341 100644 --- a/agent/admin/controllers/auto/Sms.php +++ b/agent/admin/controllers/auto/Sms.php @@ -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([], '发送成功'); diff --git a/agent/admin/controllers/pingan/Login.php b/agent/admin/controllers/pingan/Login.php index 955f900a..d3a64f4d 100644 --- a/agent/admin/controllers/pingan/Login.php +++ b/agent/admin/controllers/pingan/Login.php @@ -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('短信验证码发送成功, 请注意查收!');