add log
parent
f5d0f4e473
commit
40cca10e8b
|
@ -30,6 +30,7 @@ public class CacheRequestGatewayFilter implements GatewayFilter {
|
|||
String userId = exchange.getRequest().getHeaders().getFirst(SecurityConstants.DETAILS_USER_ID);
|
||||
log.info("经过公司过滤器,{}", userId);
|
||||
log.info("请求的uri是:{}",exchange.getRequest().getPath().toString());
|
||||
if ("/firm/firm/by/userId".equals(exchange.getRequest().getPath().toString())){
|
||||
// GET DELETE 不过滤
|
||||
RedisService redisService = SpringUtils.getBean(RedisService.class);
|
||||
FirmInfoCache firmInfoCache = redisService.getCacheObject("company:" + userId);
|
||||
|
@ -41,4 +42,7 @@ public class CacheRequestGatewayFilter implements GatewayFilter {
|
|||
}
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue