Pre Merge pull request !295 from hjk2008/N/A

This commit is contained in:
hjk2008 2024-01-11 07:48:24 +00:00 committed by Gitee
commit 220431bc0d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class FeignRequestInterceptor implements RequestInterceptor
public void apply(RequestTemplate requestTemplate)
{
HttpServletRequest httpServletRequest = ServletUtils.getRequest();
if (StringUtils.isNotNull(httpServletRequest))
if (httpServletRequest != null)
{
Map<String, String> headers = ServletUtils.getHeaders(httpServletRequest);
// 传递用户信息请求头防止丢失