Explorar o código

【程序目录】修复禁用用户登录问题

From-wh %!s(int64=2) %!d(string=hai) anos
pai
achega
d7d4cdc69d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      crmeb/app/services/user/UserAuthServices.php

+ 1 - 1
crmeb/app/services/user/UserAuthServices.php

@@ -70,7 +70,7 @@ class UserAuthServices extends BaseServices
             throw new AuthException(110003);
         }
 
-        $user = $this->dao->get(['uid' => $id, 'is_del' => 0]);
+        $user = $this->dao->get(['uid' => $id, 'is_del' => 0, 'status' => 1]);
 
         if (!$user || $user->uid != $tokenData['uid']) {
             if (!request()->isCli()) CacheService::delete($md5Token);