✨ Introducing new features. #1899 up swagger 3.0 重构 common-swagger 模块

This commit is contained in:
lengleng committed 2020-10-03 13:08:31 +08:00
1 parent 6f4328a31f
commit baf333d475
2 files changed
+2 -2

No files matched your search

@@ -27,6 +27,6 @@ public class GatewayConfigProperties {
/**
* 网关不需要校验验证码的客户端 {@link com.pig4cloud.pigx.gateway.filter.ValidateCodeGatewayFilter}
*/
public List<String> ignoreClient;
public List<String> ignoreClients;
}
@@ -82,7 +82,7 @@ public class ValidateCodeGatewayFilter extends AbstractGatewayFilterFactory {
try {
String header = request.getHeaders().getFirst(HttpHeaders.AUTHORIZATION);
String clientId = WebUtils.extractClientId(header).orElse(null);
if (StrUtil.isNotBlank(clientId) && gatewayConfig.getIgnoreClient().contains(clientId)) {
if (StrUtil.isNotBlank(clientId) && gatewayConfig.getIgnoreClients().contains(clientId)) {
return chain.filter(exchange);
}