zhangjidong 4 天之前
父節點
當前提交
a5cb65f246
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);