浏览代码

师傅端,用户

lizhen_gitee 9 月之前
父节点
当前提交
7b576d0bd3
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 1 1
      application/api/controller/worker/User.php
  2. 8 0
      application/common/library/Authworker.php

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

@@ -139,7 +139,7 @@ class User extends Apiw
 
 
     //假注销
-    public function cancleUser(){
+    public function cancleuser(){
         /*$captcha = input('captcha','');
 
         if (!$captcha) {

+ 8 - 0
application/common/library/Authworker.php

@@ -105,6 +105,10 @@ class Authworker
                 $this->setError('Account not exist');
                 return false;
             }
+            if ($user->status == -1) {
+                $this->setError('账号已注销');
+                return false;
+            }
             if ($user->status != 1) {
                 $this->setError('Account is locked');
                 return false;
@@ -260,6 +264,10 @@ class Authworker
             return false;
         }
 
+        if ($user->status == -1) {
+            $this->setError('账号已注销');
+            return false;
+        }
         if ($user->status != 1) {
             $this->setError('Account is locked');
             return false;