fixed: 后台登录失败的http状态码

This commit is contained in:
none 2023-04-07 16:13:56 +08:00
parent 094de41a4f
commit 056cb84cc9

View File

@ -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, "当前管理员禁止登录");