mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-28 22:51:54 +00:00
@@ -31,6 +31,11 @@ public class FeignRequestInterceptor implements RequestInterceptor
|
|||||||
{
|
{
|
||||||
requestTemplate.header(SecurityConstants.DETAILS_USER_ID, userId);
|
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);
|
String userName = headers.get(SecurityConstants.DETAILS_USERNAME);
|
||||||
if (StringUtils.isNotEmpty(userName))
|
if (StringUtils.isNotEmpty(userName))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user