From 93e2f109bb13b83edd65e3b16e86ac509c338b14 Mon Sep 17 00:00:00 2001 From: little-cat-sweet <851891179@qq.com> Date: Tue, 9 Nov 2021 11:47:51 +0800 Subject: [PATCH] Solving a little bug. --- .../com/xhpc/evcs/notification/NotificationCancelOrderTask.java | 1 + 1 file changed, 1 insertion(+) diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationCancelOrderTask.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationCancelOrderTask.java index c262a4b3..92ef499a 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationCancelOrderTask.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationCancelOrderTask.java @@ -39,6 +39,7 @@ public class NotificationCancelOrderTask extends CoreDispatcher { Collection ordersNotFilter = REDIS.keys("order:*"); List ordersNeedToNotify = new ArrayList<>(); for (String order : ordersNotFilter) { + if (order.length() != 38) continue; String startStatus = REDIS.getCacheMapValue(order, "startStatus"); if ("失败".equals(startStatus)) { ordersNeedToNotify.add(order);