|
|
@@ -34,6 +34,8 @@ public class GatewayUrlPathUtil { |
|
|
|
|
|
|
|
private static final String WATER_MP = "tuoheng-waterway-miniprogram"; |
|
|
|
|
|
|
|
private static final String WSPTSP_ADMIN = "tuoheng-wsptsp-admin"; |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取 gateway 路由前缀,匹配url |
|
|
|
* @param clientId |
|
|
@@ -60,6 +62,9 @@ public class GatewayUrlPathUtil { |
|
|
|
case WATER_MP: |
|
|
|
apiPath = "/waterway/miniprogram"; |
|
|
|
break; |
|
|
|
case WSPTSP_ADMIN: |
|
|
|
apiPath = "/wsptsp/admin"; |
|
|
|
break; |
|
|
|
} |
|
|
|
return apiPath; |
|
|
|
} |
|
|
@@ -81,6 +86,9 @@ public class GatewayUrlPathUtil { |
|
|
|
if(clientId.equals(WATER_ADMIN) || clientId.equals(WATER_MP)){ |
|
|
|
url = CommonsConfig.waterwayPermissionUrl; |
|
|
|
} |
|
|
|
if(clientId.equals(WSPTSP_ADMIN)){ |
|
|
|
url = CommonsConfig.weptspPermissionUrl; |
|
|
|
} |
|
|
|
log.info("getRoleIdByApiUrlPermission -url:{},token:{}", url, token); |
|
|
|
if(StringUtils.isNotBlank(url)){ |
|
|
|
HttpHeaders resultRequestHeader = new HttpHeaders(); |