Commit ee363c4c by chongli

修复小程序赛事下单用券,退款失败问题

parent 2c1ae585
......@@ -1102,6 +1102,7 @@ public class VoucherService {
voucher.setDescription(voucherRule.getDescription());
voucher.setShared(voucherRule.getShared());
voucher.setUserLimit(voucherRule.getUserLimit());
voucher.setCreatedTime(new Date());
return voucher;
}
......
......@@ -179,7 +179,7 @@ public abstract class AbstractPaymentService<T extends AbstractOrder> extends Co
if("MP".equals(order.getPlatform())){
try {
logger.error("start----------------------------------------------refound");
WeiXinAtcion.wechatRefund(order.getOrderNo()+"", order.getPrePayAmount().multiply(new BigDecimal("100")).intValue(), paymentOperateBean.getAmount().multiply(new BigDecimal("100")).intValue(),weiXinRefoundNotifyUrl);
WeiXinAtcion.wechatRefund(order.getOrderNo()+"", order.getPrePayAmount().subtract(order.getVoucherAmount()).multiply(new BigDecimal("100")).intValue(), paymentOperateBean.getAmount().multiply(new BigDecimal("100")).intValue(),weiXinRefoundNotifyUrl);
PayOrderOperateResponseBean payBean = new PayOrderOperateResponseBean();
payBean.setResultCode(CorePaymentService.SUCCESS);
result.setBody(payBean);
......
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