Browse Source

验证码

zhangxiaobin 1 năm trước cách đây
mục cha
commit
6daa2ff619
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)) {