소스 검색

假注销

lizhen_gitee 3 년 전
부모
커밋
59a49b9e2c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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'));
             }