Browse Source

新增河湖长相关配置

pull/37/head
chenjiandong 1 year ago
parent
commit
20a382704f
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java
  2. +1
    -1
      src/main/resources/application-prod.yml

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

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

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

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

Loading…
Cancel
Save