|
@@ -34,7 +34,7 @@ public class BaseController {
|
|
String token = request.getHeader(TOKEN);
|
|
String token = request.getHeader(TOKEN);
|
|
JSONObject tokenJsonObj = (JSONObject) redisTemplate.opsForValue().get(token);
|
|
JSONObject tokenJsonObj = (JSONObject) redisTemplate.opsForValue().get(token);
|
|
if(null == tokenJsonObj){
|
|
if(null == tokenJsonObj){
|
|
- throw new CommonBaseException(ResultCodeEnum.D101 , "缓存中不存在token信息");
|
|
|
|
|
|
+ throw new CommonBaseException(3004 , "token失效");
|
|
}
|
|
}
|
|
ContextTokenBean contextTokenBean = JSON.parseObject(tokenJsonObj.toJSONString() , ContextTokenBean.class);
|
|
ContextTokenBean contextTokenBean = JSON.parseObject(tokenJsonObj.toJSONString() , ContextTokenBean.class);
|
|
if(null == contextTokenBean){
|
|
if(null == contextTokenBean){
|