调试登录

master
yin5th 2023-10-12 16:41:35 +08:00
parent e5a2c57b5f
commit 5627394521
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ class LoginLogic extends Logic
throw new \Exception('账号错误'); throw new \Exception('账号错误');
} }
$user = User::field(['id', 'nickname', 'avatar', 'level', 'disable', 'distribution_code', 'is_api', 'del']) $user = User::field(['id', 'nickname', 'avatar', 'level', 'disable', 'distribution_code', 'is_api', 'del'])
->where(['id' => $userApi['id']]) ->where(['id' => $userApi['user_id']])
->findOrEmpty()->toArray(); ->findOrEmpty()->toArray();
if ($user['disable'] > 0) { if ($user['disable'] > 0) {
throw new \Exception('账号已禁用'); throw new \Exception('账号已禁用');