Browse Source

新增河湖长相关配置

pull/31/head
chenjiandong 1 year ago
parent
commit
7372bc238b
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java
  2. +1
    -1
      src/main/resources/application-dev.yml
  3. +1
    -1
      src/main/resources/application-test.yml

+ 1
- 1
src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java View File

@@ -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 需要一定的角色才可以访问

+ 1
- 1
src/main/resources/application-dev.yml View File

@@ -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

+ 1
- 1
src/main/resources/application-test.yml View File

@@ -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

Loading…
Cancel
Save