Commit 8e59b094 by 周晓航

处理退款支付异常的情况, 订单流程不往下走

parent c0ebacdf
......@@ -20,7 +20,7 @@ public enum PayRefundStatus {
* 额外状态码 用于判断逻辑,
*/
NOT_SUFFICIENT_FUNDS(8200201,"余额不足"),
COMPATIBILITY_STATUS(9999999,"兼容爱马哥报错");
COMPATIBILITY_STATUS(9999999,"退款异常");
private Integer code;
private String desc;
......
......@@ -102,7 +102,7 @@ public class PaymentHandle {
refundResponse = this.refund(request, orderBean);
}
}
} catch (OrderServiceException orderEx) { // 爱马哥兼容,不抛错
} catch (OrderServiceException orderEx) {
ResponseResult result = orderEx.getResult();
refundResponse = new PayRefundResponse();
refundResponse.setPayRefundStatus(PayRefundStatus.COMPATIBILITY_STATUS);
......
......@@ -244,7 +244,7 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService {
deliveryHandle.cancelDelivery(orderBean, request);
//支付退款
PayRefundResponse refundResponse = this.getPayRefundResponse(request, orderBean);
// 爱马哥报错
// 退款异常
if (refundResponse.getPayRefundStatus().getCode().compareTo(PayRefundStatus.COMPATIBILITY_STATUS.getCode()) == 0) {
return ResponseUtil.error(refundResponse.getResult());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment