Browse Source

fix: 微信手机号登录提示账号被锁定问题

super-yimizi 1 month ago
parent
commit
80f74c7b86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Login.php

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

@@ -280,7 +280,7 @@ class Login extends Base
 
 
             $user = \app\common\model\User::getByMobile($mobile);
             $user = \app\common\model\User::getByMobile($mobile);
             if ($user) {
             if ($user) {
-                if ($user->status != 'normal') {
+                if ($user->status != StatusEnum::ENABLED) {
                     $this->error(__('Account is locked'));
                     $this->error(__('Account is locked'));
                 }
                 }
                 //如果已经有账号则直接登录
                 //如果已经有账号则直接登录