|
@@ -3,32 +3,22 @@ package org.jeecg.interceptor;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
import cn.hutool.json.JSONUtil;
|
|
|
-import com.alibaba.druid.support.json.JSONUtils;
|
|
|
|
|
-import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.shiro.authc.AuthenticationException;
|
|
|
|
|
import org.jeecg.annotation.ApiLogin;
|
|
import org.jeecg.annotation.ApiLogin;
|
|
|
import org.jeecg.com.util.ThirdSessionHolder;
|
|
import org.jeecg.com.util.ThirdSessionHolder;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
|
-import org.jeecg.common.exception.JeecgBoot401Exception;
|
|
|
|
|
-import org.jeecg.common.exception.JeecgBootException;
|
|
|
|
|
import org.jeecg.common.system.util.JwtUtil;
|
|
import org.jeecg.common.system.util.JwtUtil;
|
|
|
import org.jeecg.common.util.RedisUtil;
|
|
import org.jeecg.common.util.RedisUtil;
|
|
|
import org.jeecg.common.util.TenantContextHolder;
|
|
import org.jeecg.common.util.TenantContextHolder;
|
|
|
-import org.jeecg.modules.wxuser.entity.ThirdSession;
|
|
|
|
|
-import org.springframework.data.redis.core.RedisTemplate;
|
|
|
|
|
-import org.springframework.http.MediaType;
|
|
|
|
|
|
|
+import org.jeecg.modules.wxuser.dto.ThirdSession;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.method.HandlerMethod;
|
|
import org.springframework.web.method.HandlerMethod;
|
|
|
import org.springframework.web.servlet.HandlerInterceptor;
|
|
import org.springframework.web.servlet.HandlerInterceptor;
|
|
|
-import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
-import java.io.PrintWriter;
|
|
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* ThirdSession拦截器,校验每个请求的ThirdSession
|
|
* ThirdSession拦截器,校验每个请求的ThirdSession
|