|
|
|
@ -77,7 +77,8 @@ public class TuanYouController { |
|
|
|
|
HighOrder order = highOrderService.getOrderByOrderNo(object.getString("thirdOrderNo")); |
|
|
|
|
|
|
|
|
|
// 订单状态:1 待支付 2 已支付 3.已完成 4. 已退款 5.已取消 6.退款中 7.拒绝退款
|
|
|
|
|
if (order != null && order.getOrderStatus() == 6) { |
|
|
|
|
if (order != null) { |
|
|
|
|
if (order.getOrderStatus() == 2 || order.getOrderStatus() == 6) { |
|
|
|
|
// 退单结果 true:成功 false:失败
|
|
|
|
|
if (object.getBoolean("refundResult") == true && order != null) { |
|
|
|
|
OrderRefundModel orderRefundModel = WxOrderConfig.orderToRefund(order.getPaySerialNo(), order.getPayRealPrice(), order.getPayRealPrice()); |
|
|
|
@ -92,6 +93,7 @@ public class TuanYouController { |
|
|
|
|
highOrderService.updateOrderDetail(order); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
response.setCharacterEncoding("UTF-8"); |
|
|
|
|
response.setContentType("text/html;charset=utf-8"); |
|
|
|
|
PrintWriter writer= response.getWriter(); |
|
|
|
|