|
@@ -34,13 +34,12 @@ public class CheckTimeServiceImpl implements CheckTimeService {
|
34
|
34
|
|
35
|
35
|
Object value = redisTemplate.opsForValue().get(redisKey);
|
36
|
36
|
long last;
|
37
|
|
- //noinspection ConstantConditions
|
38
|
37
|
if (value == null) {
|
39
|
38
|
last = System.currentTimeMillis() - ElasticConstant.CHECK_TIME_INTERVAL;
|
40
|
39
|
} else {
|
41
|
40
|
last = Long.parseLong(value.toString());
|
42
|
41
|
}
|
43
|
|
- redisTemplate.opsForValue().set(redisKey, last);
|
|
42
|
+ // redisTemplate.opsForValue().set(redisKey, last);
|
44
|
43
|
return LocalDateTime.ofInstant(new Date(last).toInstant(), ZoneId.systemDefault()).format(DateUtil.DATE_TIME_FORMATTER);
|
45
|
44
|
}
|
46
|
45
|
|