!237 fix: user_key 头信息未传递

Merge pull request !237 from runphp/N/A
pull/204/MERGE
若依 2 years ago committed by Gitee
commit bc7a743998
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