⚡ 优化。 对非web 发起的feign 调用进行排除

This commit is contained in:
冷冷 committed 2018-09-25 14:10:58 +08:00
1 parent cc9523d8c5
commit a009ae80de
1 file changed
+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);