15954078560 2 éve
szülő
commit
c4c3ae6482
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      application/api/controller/User.php

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

@@ -79,9 +79,12 @@ class User extends Api
         }
         $user = \app\common\model\User::getByMobile($mobile);
         if ($user) {
-            if ($user->status != 'normal') {
+            if ($user->status == 'hidden') {
                 $this->error(__('Account is locked'));
             }
+            if ($user->status == 'logout') {
+                $this->error(__('账号已注销'));
+            }
             //如果已经有账号则直接登录
             $ret = $this->auth->direct($user->id);
         } else {