Commit 7a63c984 by rui.zhu

支付回调超时已关单的订单直接退款处理

parent 388238d3
......@@ -933,11 +933,11 @@ public class PayServiceImpl {
closeUnifiedOrderRequest.setStoreId(orderBean.getShopId());
// 不关心支付关单结果,不判断是否关闭预定单成功
this.cancelNewUnifiedOrder(closeUnifiedOrderRequest);
com.freemud.application.sdk.api.base.BaseResponse<CloseUnifiedOrderResult> cancelNewUnifiedOrder = this.cancelNewUnifiedOrder(closeUnifiedOrderRequest);
if (ObjectUtils.notEqual(ResponseResult.SUCCESS.getCode(), cancelNewUnifiedOrder.getCode())
|| ObjectUtils.notEqual(ResponseResult.SUCCESS.getCode(), cancelNewUnifiedOrder.getData().getResultCode())) {
throw new ServiceException(ResponseResult.ORDER_PRE_PAYMENT_CLOSE_FAILED);
}
// com.freemud.application.sdk.api.base.BaseResponse<CloseUnifiedOrderResult> cancelNewUnifiedOrder = this.cancelNewUnifiedOrder(closeUnifiedOrderRequest);
// if (ObjectUtils.notEqual(ResponseResult.SUCCESS.getCode(), cancelNewUnifiedOrder.getCode())
// || ObjectUtils.notEqual(ResponseResult.SUCCESS.getCode(), cancelNewUnifiedOrder.getData().getResultCode())) {
// throw new ServiceException(ResponseResult.ORDER_PRE_PAYMENT_CLOSE_FAILED);
// }
}
return paySuccess;
}
......
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