sys.visit.tokentime解析保护
This commit is contained in:
parent
c7c5f3c2ed
commit
a173f521a0
|
|
@ -207,7 +207,11 @@ public class TokenService {
|
|||
long tokenTime = 20L;
|
||||
String redisResult = redisService.getCacheObject("sys_config:"+ "sys.visit.tokentime");
|
||||
if(StringUtils.isNotEmpty(redisResult)) {
|
||||
tokenTime = Long.parseLong(redisResult);
|
||||
try {
|
||||
tokenTime = Long.parseLong(redisResult);
|
||||
} catch (Exception e) {
|
||||
tokenTime = 43200L; //MINUTES
|
||||
}
|
||||
}else {
|
||||
Long result = systemConfig.getTokenTime();
|
||||
if (!ObjectUtil.isEmpty(result)){
|
||||
|
|
|
|||
Loading…
Reference in New Issue