✨ Introducing new features. #1899 up swagger 3.0 重构 common-swagger 模块
This commit is contained in:
1 parent
6f4328a31f
commit
baf333d475
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -27,6 +27,6 @@ public class GatewayConfigProperties {
|
||||
/**
|
||||
* 网关不需要校验验证码的客户端 {@link com.pig4cloud.pigx.gateway.filter.ValidateCodeGatewayFilter}
|
||||
*/
|
||||
public List<String> ignoreClient;
|
||||
public List<String> ignoreClients;
|
||||
|
||||
}
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user