修复验证权限失败bug

This commit is contained in:
TinyAnts 2022-04-20 11:25:25 +08:00
parent 5c6204f489
commit bfe604332e
2 changed files with 3 additions and 3 deletions

View File

@ -110,8 +110,8 @@ public class LikeAdminInterceptor implements HandlerInterceptor {
LikeAdminThreadLocal.put("nickname", map.get("nickname").toString());
// 免权限验证接口
List<String> notAuthUri = Arrays.asList(AdminConfig.notLoginUri);
if (notAuthUri.contains(request.getRequestURI()) || Integer.parseInt(uid) == 1) {
List<String> notAuthUri = Arrays.asList(AdminConfig.notAuthUri);
if (notAuthUri.contains(auths) || Integer.parseInt(uid) == 1) {
return HandlerInterceptor.super.preHandle(request, response, handler);
}

View File

@ -24,7 +24,7 @@ public class AdminConfig {
public static String[] notAuthUri = new String[]{
"system:admin:upInfo", // 管理员更新
"system:admin:self", // 管理员信息
"system/logout" // 退出登录
"system:logout" // 退出登录
};
}