修复: 全局客户端获取null异常
This commit is contained in:
parent
b63d93364a
commit
9a9ae9f336
|
|
@ -10,6 +10,7 @@ import com.mdd.common.enums.HttpEnum;
|
|||
import com.mdd.common.exception.LoginException;
|
||||
import com.mdd.common.mapper.user.UserMapper;
|
||||
import com.mdd.common.util.StringUtils;
|
||||
import io.swagger.models.auth.In;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.lang.NonNull;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
|
@ -46,6 +47,7 @@ public class LikeFrontInterceptor implements HandlerInterceptor {
|
|||
|
||||
// 记录当前平台
|
||||
String terminal = request.getHeader("terminal");
|
||||
terminal = StringUtils.isEmpty(terminal) ? "1" : terminal;
|
||||
LikeFrontThreadLocal.put("terminal", terminal);
|
||||
|
||||
// 判断请求接口
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
package com.mdd.front.config;public class SwaggerConfig {
|
||||
}
|
||||
Loading…
Reference in New Issue