Helius
2020-10-12 6d57ebafff0f9dea7999c021edc652f599523935
modify
1 files modified
5 ■■■■■ changed files
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -50,7 +50,6 @@
        HttpServletResponse response = (HttpServletResponse) servletResponse;
        String token = resolveToken(request);
        log.info("----->{}", token);
        if (!AppContants.TIME_OUT.equals(token)) {
            if (StrUtil.isNotBlank(token)) {
                String redisKey = "";
@@ -100,8 +99,8 @@
                if (verifyTokenExpired(Long.parseLong(tokens[1]))) {
                    return tokens[0];
                } else {
//                    log.info("前面token为{}", tokens[0]);
//                    log.info("时间为:{}, 当前时间为:{}", tokens[1], System.currentTimeMillis());
                    log.info("前面token为{}", tokens[0]);
                    log.info("时间为:{}, 当前时间为:{}", tokens[1], System.currentTimeMillis());
                    return AppContants.TIME_OUT;
                }
            }