浏览代码

wesmiler 短信内容更新

wesmiler 2 年之前
父节点
当前提交
235ea21cce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Services/SmsService.php

+ 1 - 0
app/Services/SmsService.php

@@ -70,6 +70,7 @@ class SmsService extends BaseService
         $code = rand(1000,9999);
         $content="【{$signName}】您的验证码是:{$code},该验证码5分钟内有效,请在登录页面中相应位置输入完成验证。请勿向他人泄漏该验证码。";//短信内容
 //        $content="【{$signName}】您的验证码是:{$code},请在10分钟内使用,请不要将验证码泄漏个他人。";//短信内容
+        $content = iconv('UTF-8','GBK', $content);
         $url="{$apiUrl}/sms?action=send&password={$password}&extno={$extno}&mobile={$mobile}&account={$account}&content={$content}";
         try {
             $response = httpRequest($url,'','get','',5,[],'text');