mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-21 03:12:44 +08:00
fixed: 后台登录失败的http状态码
This commit is contained in:
parent
094de41a4f
commit
056cb84cc9
@ -69,7 +69,7 @@ public class AdminMiddleware implements HandlerInterceptor {
|
||||
|
||||
AdminUser adminUser = adminUserService.findById(payload.getSub());
|
||||
if (adminUser == null) {
|
||||
return responseTransform(response, 404, "管理员不存在");
|
||||
return responseTransform(response, 401, "管理员不存在");
|
||||
}
|
||||
if (adminUser.getIsBanLogin() == 1) {
|
||||
return responseTransform(response, 403, "当前管理员禁止登录");
|
||||
|
Loading…
x
Reference in New Issue
Block a user