From 2f9dd58ac45ce5496a4668340ba29a5337e21751 Mon Sep 17 00:00:00 2001 From: ZZ Date: Fri, 3 Dec 2021 15:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=97=E4=BA=86=E5=A4=9A=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E5=87=A0=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xhpc/evcs/notification/NotificationChargeOrderInfoTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 31c2d955..9e3c7104 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 * 5) { + if (Duration.between(otime.toInstant(), now).toHours() > 24 * 3) { REDIS.deleteObject(okey); REDIS.deleteObject(okey.replace("order", "pushOrder")); logger.info("clear cache..{}", okey);