修改bug

This commit is contained in:
付庆吉
2021-03-25 11:04:10 +08:00
parent eac87834dd
commit aa37c3e536

View File

@ -42,7 +42,7 @@ public class FeignConfig implements RequestInterceptor {
Optional.ofNullable(attributes.getRequest().getCookies()).ifPresent(cookies -> {
Stream.of(cookies).filter(item -> StringUtils.equals(item.getName(), COOKIE_TOKEN_CODE)).findFirst()
.ifPresent(token -> {
template.header(AUTHORIZATION_HEADER, String.format("%s%s", TOKEN_PREFIX, token));
template.header(AUTHORIZATION_HEADER, String.format("%s%s", TOKEN_PREFIX, token.getValue()));
});
});
}