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('短信验证码发送成功, 请注意查收!');