|
|
@ -160,7 +160,19 @@ public class OrderRefundServiceImpl implements OrderRefundService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 第三方退款
|
|
|
|
// 第三方退款
|
|
|
|
if (orderPayType.getNumber().equals(OrderPayType.PAY_TYPE2.getNumber())) { |
|
|
|
if (orderPayType.getNumber().equals(OrderPayType.PAY_TYPE1.getNumber())) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (order.getPayChannel() == 2) { |
|
|
|
|
|
|
|
JSONObject object = huiConfig.refund(order); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (object.getString("return_code").equals("000000")) { |
|
|
|
|
|
|
|
JSONObject jsonObject = object.getJSONObject("return_data"); |
|
|
|
|
|
|
|
refundPriceModel.setRefundSuccess(true); |
|
|
|
|
|
|
|
refundPriceModel.setThirdPartyRefundOrderNo(jsonObject.getString("refundTradeNo")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (orderPayType.getNumber().equals(OrderPayType.PAY_TYPE2.getNumber())) { |
|
|
|
|
|
|
|
|
|
|
|
if (order.getPayChannel() == 2) { |
|
|
|
if (order.getPayChannel() == 2) { |
|
|
|
JSONObject object = huiConfig.refund(order); |
|
|
|
JSONObject object = huiConfig.refund(order); |
|
|
|