xiaoyong931011
2021-01-18 dd48d2c05e7ba09b11a3f7ccffd43c1b65ab1a9a
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -65,7 +65,7 @@
                    MemberEntity loginUser = JSONObject.parseObject(loginStr, MemberEntity.class);
                    Authentication authentication = new UsernamePasswordAuthenticationToken(loginUser, token, new ArrayList<>());
                    SecurityContextHolder.getContext().setAuthentication(authentication);
                    redisUtils.expire(redisKey, 3600);
                    redisUtils.expire(redisKey, 36000);
                } else {
                    log.info("token无法查询:{}", token);
                    SecurityContextHolder.clearContext();