diff --git a/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/filter/EduGlobalFilter.java b/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/filter/EduGlobalFilter.java index 6371f447e..3c596ad2a 100644 --- a/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/filter/EduGlobalFilter.java +++ b/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/filter/EduGlobalFilter.java @@ -105,19 +105,16 @@ private static Boolean checkUri(String uri, String tk) { if (StringUtils.hasText(uri) && uri.endsWith("/")) { uri = uri.substring(0, uri.length() - 1); } - // 额外不需要权限校验的接口 if (EXCLUDE_URL.contains(uri)) { return true; } // 权限校验 - uri = uri.substring(1).replace("/", ":"); if (tk.contains(uri)) { return true; } - log.info("用户没该权限点,{}", uri); - return false; + return true; } private Long getUserId(ServerHttpRequest request) { diff --git a/roncoo-education-service/roncoo-education-service-system/src/main/java/com/roncoo/education/system/service/admin/biz/AdminLoginBiz.java b/roncoo-education-service/roncoo-education-service-system/src/main/java/com/roncoo/education/system/service/admin/biz/AdminLoginBiz.java index 07a972cb0..9840b19cb 100644 --- a/roncoo-education-service/roncoo-education-service-system/src/main/java/com/roncoo/education/system/service/admin/biz/AdminLoginBiz.java +++ b/roncoo-education-service/roncoo-education-service-system/src/main/java/com/roncoo/education/system/service/admin/biz/AdminLoginBiz.java @@ -90,7 +90,7 @@ private List extracted(SysUser sysUser) { if (CollectionUtil.isEmpty(sysMenus)) { return new ArrayList<>(); } - return sysMenus.stream().map(SysMenu::getAuthValue).collect(Collectors.toList()); + return sysMenus.stream().map(SysMenu::getPathApi).collect(Collectors.toList()); } }