zhangjidong il y a 4 jours
Parent
commit
a5cb65f246
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      modules/client/models/v1/LoginForm.php

+ 1 - 1
modules/client/models/v1/LoginForm.php

@@ -813,7 +813,7 @@ class LoginForm extends ApiModel
     public function sendCode($key)
     {
          $is_debug=Option::get('is_debug', 0, 'saas', 0)['value'];
-        if(preg_match("/^111\d{8}$/", $this->phone) && $is_debug == 1){
+        if($is_debug == 1){
             $sms_code = 999999;
             // 验证码有效期5分钟
             cache()->set($this->phone . $key . $this->store_id, $sms_code, 600);