@@ -72,6 +72,7 @@ public class GatewayFilterConfig implements GlobalFilter, Ordered { | |||
if(roleIds.size() > 0){ | |||
//说明这个url 需要一定的角色才可以访问 | |||
//在不是admin权限的情况下进行校验 | |||
log.info("该接口存在权限..."); | |||
if(!authorityList.contains(ADMIN)){ | |||
//获取用户 client_id 对应的 roleId | |||
ClientUserRoleDto clientUserRoleDto = clientUserRoleDtoList.stream().filter(dto -> dto.getClientId().equals(clientId)) |
@@ -185,4 +185,4 @@ security: | |||
# 获取 apiUrl 可访问的 roleIdList | |||
tuoheng: | |||
hhz-admin-perUrl: https://hhz.t-aaron.com/hhz/admin/permission/getRoleIdList | |||
hhz-admin-perUrl: http://172.16.1.31:9055/permission/getRoleIdList |