2
0

feat: 邮箱验证码调整

This commit is contained in:
caiyuchao
2025-02-07 19:29:12 +08:00
parent 8e80e320f8
commit 2ef09ec104
13 changed files with 115 additions and 24 deletions

View File

@@ -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);