From a0da7c4924f3645ab95beca4293a2cc95ad2ebf1 Mon Sep 17 00:00:00 2001 From: little-cat-sweet <851891179@qq.com> Date: Mon, 8 Nov 2021 16:54:07 +0800 Subject: [PATCH] Perfecting a logic that if the response failed, just throw a exception to make a notice. --- .../xhpc/evcs/notification/NotificationCancelOrderTask.java | 3 +++ 1 file changed, 3 insertions(+) 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 59fcf38a..c262a4b3 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 @@ -91,6 +91,9 @@ public class NotificationCancelOrderTask extends CoreDispatcher { if (null != succStat) { if (0 == succStat) { REDIS.deleteObject(orderNo); + } else { + throw new RuntimeException(String.format("push 3rd cancel order status [%s] failed: %s", + cancelOrderResponse.getSuccStat(), responseBody)); } } }