Perfecting a logic that if the response failed, just throw a exception to make a notice.

This commit is contained in:
little-cat-sweet 2021-11-08 16:54:07 +08:00
parent 24f8cc0730
commit a0da7c4924

View File

@ -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));
}
}
}