wesmiler 2 лет назад
Родитель
Сommit
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');