浏览代码

假注销

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'));
             }