调试登录
parent
e5a2c57b5f
commit
5627394521
|
@ -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('账号已禁用');
|
||||
|
|
Loading…
Reference in New Issue