From 83e2fd8d61d116ce9bf2034e8d05346910f96260 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Sun, 29 Nov 2020 13:23:15 +0800
Subject: [PATCH] 卖出额度限制
---
src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java b/src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
index 6066631..adbb356 100644
--- a/src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
+++ b/src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -65,9 +65,9 @@
MemberEntity loginUser = JSONObject.parseObject(loginStr, MemberEntity.class);
Authentication authentication = new UsernamePasswordAuthenticationToken(loginUser, token, new ArrayList<>());
SecurityContextHolder.getContext().setAuthentication(authentication);
- redisUtils.expire(redisKey, 300000);
+ 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;
}
--
Gitblit v1.9.1