Commit 3d8b60d9 by caosy

订单退款

parent 89176fc4
......@@ -192,8 +192,15 @@ public abstract class AbstractNotifyService extends CorePaymentService {
}
}
// 设置支付方式 防止APP 下单 小程序支付
order.setPlatform("MP");
if(order.getOrderSource() == OrderSourceEnum.OFFLINE.getKey()){
// offline
order.setOrderType(1);
}else{
order.setOrderSource(OrderSourceEnum.H5CTRIP.getKey());
}
order.setPlatform("MP");
//6、更新订单信息(状态)
this.orderDao.update(order);
this.doPaySuccess(order);
......
......@@ -188,7 +188,6 @@ public abstract class AbstractPaymentService<T extends AbstractOrder> extends Co
}else if(order.getOrderCategory()==14){
refoundNotifyUrl=weiXinRefoundNotifyUrl.replace("{orderType}", "eventActivityOrder");
}
BigDecimal xx= order.getOnPayAmount();
WeiXinAtcion.wechatRefund(order.getOrderNo()+"", order.getAmount().subtract(order.getVoucherAmount()).subtract(order.getPrePayCardAmount()).subtract(order.getOnPayAmount()).multiply(new BigDecimal("100")).intValue(), paymentOperateBean.getAmount().multiply(new BigDecimal("100")).intValue(),refoundNotifyUrl);
PayOrderOperateResponseBean payBean = new PayOrderOperateResponseBean();
payBean.setResultCode(CorePaymentService.SUCCESS);
......
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 sign in to comment