@@ -65,7 +65,7 @@ public class GatewayFilterConfig implements GlobalFilter, Ordered { | |||
//去除gateway path 前缀 | |||
String apiUrl = requestUrl.replace(GatewayUrlPathUtil.getPathByClientId(clientId),""); | |||
List<Integer> roleIds = GatewayUrlPathUtil.getRoleIdByApiUrlPermission(clientId, apiUrl, token); | |||
log.info("roleIds is :{}", clientId); | |||
log.info("roleIds is :{}", roleIds); | |||
//return invalidClientIdMono(exchange); | |||
if(roleIds.size() > 0){ | |||
//说明这个url 需要一定的角色才可以访问 |
@@ -193,4 +193,4 @@ security: | |||
# 获取 apiUrl 可访问的 roleIdList | |||
tuoheng: | |||
hhz-admin-perUrl: http://192.168.11.22:9055/permission/getRoleIdList | |||
hhz-admin-perUrl: http://192.168.11.11:9055/permission/getRoleIdList |
@@ -186,4 +186,4 @@ security: | |||
# 获取 apiUrl 可访问的 roleIdList | |||
tuoheng: | |||
hhz-admin-perUrl: http://192.168.11.22:9055/api/permission/getRoleIdList | |||
hhz-admin-perUrl: http://172.15.1.21:9055/permission/getRoleIdList |