lizhen_gitee 3 éve
szülő
commit
59a49b9e2c
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      application/api/controller/User.php

+ 3 - 0
application/api/controller/User.php

@@ -87,6 +87,9 @@ class User extends Api
         }
         $user = \app\common\model\User::getByMobile($mobile);
         if ($user) {
+            if ($user->status == -1) {
+                $this->error('账户已注销');
+            }
             if ($user->status != 1) {
                 $this->error(__('Account is locked'));
             }