feat: 邮箱验证码调整
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
package org.wfc.common.security.feign;
|
||||
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import feign.RequestInterceptor;
|
||||
import feign.RequestTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.wfc.common.core.constant.SecurityConstants;
|
||||
import org.wfc.common.core.utils.ServletUtils;
|
||||
import org.wfc.common.core.utils.StringUtils;
|
||||
import org.wfc.common.core.utils.ip.IpUtils;
|
||||
import feign.RequestInterceptor;
|
||||
import feign.RequestTemplate;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* feign 请求拦截器
|
||||
@@ -46,6 +47,11 @@ public class FeignRequestInterceptor implements RequestInterceptor
|
||||
{
|
||||
requestTemplate.header(SecurityConstants.AUTHORIZATION_HEADER, authentication);
|
||||
}
|
||||
String language = headers.get(SecurityConstants.CONTENT_LANGUAGE);
|
||||
if (StringUtils.isNotEmpty(language))
|
||||
{
|
||||
requestTemplate.header(SecurityConstants.CONTENT_LANGUAGE, language);
|
||||
}
|
||||
String platform = headers.get(SecurityConstants.DETAILS_PLATFORM);
|
||||
if (StringUtils.isNotEmpty(platform)) {
|
||||
requestTemplate.header(SecurityConstants.DETAILS_PLATFORM, platform);
|
||||
|
||||
Reference in New Issue
Block a user