|
@@ -55,8 +55,8 @@ public class GlobalGatewayFilter implements GlobalFilter {
|
|
private static Boolean IS_GENERATE = false;
|
|
private static Boolean IS_GENERATE = false;
|
|
private static Map<String, Long> SERVICE_FILTER = new HashMap<>();
|
|
private static Map<String, Long> SERVICE_FILTER = new HashMap<>();
|
|
|
|
|
|
- @Value("${lantone.valid}")
|
|
|
|
- private Boolean lantoneValid;
|
|
|
|
|
|
+ @Value("${lantone.gateway-valid}")
|
|
|
|
+ private Boolean gatewayValid;
|
|
|
|
|
|
// @Autowired
|
|
// @Autowired
|
|
// DiagbotmanServiceClient diagbotmanServiceClient;
|
|
// DiagbotmanServiceClient diagbotmanServiceClient;
|
|
@@ -90,7 +90,7 @@ public class GlobalGatewayFilter implements GlobalFilter {
|
|
}
|
|
}
|
|
|
|
|
|
//网关验证产品线接口权限
|
|
//网关验证产品线接口权限
|
|
- if (lantoneValid) {
|
|
|
|
|
|
+ if (gatewayValid) {
|
|
ServiceFilterDTO serviceFilterDTO = new ServiceFilterDTO();
|
|
ServiceFilterDTO serviceFilterDTO = new ServiceFilterDTO();
|
|
try {
|
|
try {
|
|
serviceFilterDTO = serviceFilterFacade.getServiceFilter();
|
|
serviceFilterDTO = serviceFilterFacade.getServiceFilter();
|