Commit 3bd6e2b9 by 侯体倬

跨店单取消付款兼容

parent e87b4489
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
}, },
cancelPayment(options) { cancelPayment(options) {
return requestPOST1( return requestPOST1(
`${process.env.OLSHOP_URL}/pay/payment_cancel?orderSn=${options}` `${process.env.OLSHOP_URL}/pay/payment_cancel?orderSn=${options.orderSn}&batchNumber=${options.batchNumber}`
); );
}, },
getGiftRechargeOrderQuery(options) { getGiftRechargeOrderQuery(options) {
......
...@@ -252,7 +252,11 @@ export default { ...@@ -252,7 +252,11 @@ export default {
log.info("支付失败", res, this.options.orderSn); log.info("支付失败", res, this.options.orderSn);
this.message = "支付失败"; this.message = "支付失败";
if ((res.errMsg = "requestPayment:fail cancel")) { if ((res.errMsg = "requestPayment:fail cancel")) {
wxPay.cancelPayment(this.options.orderSn).then(() => { const params = {
orderSn: this.options.orderSn,
batchNumber: this.batchNumber
}
wxPay.cancelPayment(params).then(() => {
log.info("取消成功"); log.info("取消成功");
}); });
} }
......
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