fix: user_key 头信息未传递

Signed-off-by: runphp <runphp@qq.com>
pull/237/head
runphp 2 years ago committed by Gitee
parent 858f576fa3
commit fcb58876e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -31,6 +31,11 @@ public class FeignRequestInterceptor implements RequestInterceptor
{
requestTemplate.header(SecurityConstants.DETAILS_USER_ID, userId);
}
String userKey = headers.get(SecurityConstants.USER_KEY);
if (StringUtils.isNotEmpty(userKey))
{
requestTemplate.header(SecurityConstants.USER_KEY, userKey);
}
String userName = headers.get(SecurityConstants.DETAILS_USERNAME);
if (StringUtils.isNotEmpty(userName))
{

Loading…
Cancel
Save