Explorar o código

客户端-短信验证码支持港澳台手机号码

sunxbiao hai 1 ano
pai
achega
0090596e7f

+ 1 - 1
app/validate/api/UserAuthValidate.php

@@ -17,7 +17,7 @@ class UserAuthValidate extends Validate
17 17
     protected $failException = true;
18 18
 
19 19
     protected $rule = [
20
-        'phone|手机号' => 'require|mobile',
20
+        // 'phone|手机号' => 'require|mobile',
21 21
         'pwd|密码' => 'require|min:6',
22 22
         'sms_code|短信验证码' => 'require|max:4',
23 23
     ];

+ 1 - 1
crmeb/services/AliYunSmsService.php

@@ -95,7 +95,7 @@ class AliYunSmsService
95 95
                 ->request();
96 96
 
97 97
             log::info("短信:返回参数");
98
-            log::info($result);
98
+            log::info(json_encode($result->toArray()));
99 99
             Db::name('sms_record')->insert(['phone' => $mobile, 'content' => $content, 'template' => $TemplateCode, 'create_time'=>date("Y-m-d H:i:s")]);
100 100
             return $result->toArray();
101 101
         // } catch (ClientException $e) {