diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java index 29cd379d..31c2d955 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java @@ -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);