Commit 012f5e25 by 周晓航

修改退款失败 描述信息, 提示更加准确

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent b406c58a
......@@ -95,7 +95,9 @@ public class PaymentHandle {
if(ResponseResult.NOT_SUFFICIENT_FUNDS.getCode().equals(orderRefundResponse.getCode())){
throw new OrderServiceException(ResponseResult.NOT_SUFFICIENT_FUNDS);
}
throw new OrderServiceException(ResponseResult.REFUND_FAIL,orderRefundResponse.getMessage());
ResponseResult refundFail = ResponseResult.REFUND_FAIL;
refundFail.setMessage(orderRefundResponse.getMessage());
throw new OrderServiceException(refundFail);
}
refundStatus=ObjectUtils.equals( PayRefundStatus.SUCCESS.getCode(), orderRefundResponse.getData().getRefundStatus())?PayRefundStatus.SUCCESS:PayRefundStatus.RUNNING;
return handlePayRefundResponse(refundStatus,orderRefundRequest.getRefundId());
......
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