From 56273945210015c057adc4f240abae0273c820ae Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Thu, 12 Oct 2023 16:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/api/logic/LoginLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/api/logic/LoginLogic.php b/server/app/api/logic/LoginLogic.php index 705e0d62..9576a7fc 100644 --- a/server/app/api/logic/LoginLogic.php +++ b/server/app/api/logic/LoginLogic.php @@ -635,7 +635,7 @@ class LoginLogic extends Logic throw new \Exception('账号错误'); } $user = User::field(['id', 'nickname', 'avatar', 'level', 'disable', 'distribution_code', 'is_api', 'del']) - ->where(['id' => $userApi['id']]) + ->where(['id' => $userApi['user_id']]) ->findOrEmpty()->toArray(); if ($user['disable'] > 0) { throw new \Exception('账号已禁用');