|
@@ -39,7 +39,7 @@ public class JWTFilter extends BasicHttpAuthenticationFilter {
|
|
|
getSubject(request, response).login(token);
|
|
|
RedisUtil redisUtil = SpringUtil.getBean(RedisUtil.class);
|
|
|
ConfigConstant configConstant = SpringUtil.getBean(ConfigConstant.class);
|
|
|
- Boolean hasKey = redisUtil.hasKey(configConstant.redisTokenPrefix + token);
|
|
|
+ Boolean hasKey = redisUtil.hasKey(configConstant.redisTokenPrefix + authorization);
|
|
|
if (!hasKey){
|
|
|
throw new BaseRuntimeException(5001, "token invalid");
|
|
|
}
|