Browse Source

验证码

zhangxiaobin 1 year ago
parent
commit
6daa2ff619
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/User.php

+ 1 - 1
application/api/controller/User.php

@@ -82,7 +82,7 @@ class User extends Api
         if (!Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('Mobile is incorrect'));
         }
-        if (!Sms::check($mobile, $captcha, 'mobilelogin') && $captcha != '8888') {
+        if (!Sms::check($mobile, $captcha, 'mobilelogin') && $captcha != '1212') {
             $this->error(__('Captcha is incorrect'));
         }
         if (!empty($openid)) {