算了多保留几天

This commit is contained in:
ZZ 2021-12-03 15:48:33 +08:00
parent ef11c74fef
commit c11ca00626

View File

@ -46,7 +46,7 @@ public class NotificationChargeOrderInfoTask extends CoreDispatcher {
Instant now = Instant.now();
for (String okey : orderKeys) {
Date otime = DateUtil.orderNo2Date(okey.substring(6));
if (Duration.between(otime.toInstant(), now).toHours() > 24) {
if (Duration.between(otime.toInstant(), now).toHours() > 24 * 5) {
REDIS.deleteObject(okey);
REDIS.deleteObject(okey.replace("order", "pushOrder"));
logger.info("clear cache..{}", okey);