Perfecting a logic that if the response failed, just throw a exception to make a notice.
This commit is contained in:
parent
24f8cc0730
commit
a0da7c4924
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user