zainali5120
2020-11-29 83e2fd8d61d116ce9bf2034e8d05346910f96260
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -67,7 +67,7 @@
                    SecurityContextHolder.getContext().setAuthentication(authentication);
                    redisUtils.expire(redisKey, 36000);
                } else {
                    log.info("token无法查询:{}", token);
                    //log.info("token无法查询:{}", token);
                    SecurityContextHolder.clearContext();
                }
            } else {
@@ -106,7 +106,7 @@
            }
//            log.info("bearerToken---->{}", bearerToken);
        } catch (Exception e) {
            log.error("#解析token异常#", e);
            //log.error("#解析token异常#", e);
            return null;
        }
        return null;
@@ -116,7 +116,7 @@
        boolean isDebug = applicationProperties.isDebug();
        if (!isDebug) {
            long currentTime = System.currentTimeMillis();
            return currentTime - time <= 10000;
            return currentTime - time <= 30000;
        }
        return true;
    }