mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 12:39:05 +08:00
⚡ 优化。 对非web 发起的feign 调用进行排除
This commit is contained in:
1 parent
cc9523d8c5
commit
a009ae80de
1 file changed
+4
+4
@@ -53,6 +53,10 @@ public class PigxFeignClientInterceptor extends OAuth2FeignRequestInterceptor {
|
||||
*/
|
||||
@Override
|
||||
public void apply(RequestTemplate template) {
|
||||
if (template.headers().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (oAuth2ClientContext != null
|
||||
&& oAuth2ClientContext.getAccessToken() != null) {
|
||||
super.apply(template);
|
||||
|
||||
Reference in new issue
Block a user