feat(创建优惠券订单支付):接口新增token,便于回调返回token值

This commit is contained in:
Apple 2022-10-26 09:59:02 +08:00
parent 5fe4cf5df6
commit a7f8b199f5
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@
//优惠券订单支付
createdPay (orderNumber) {
req.axiosGet('/key/coupon/createPay/' + orderNumber).then(res => {
req.axiosGet('/key/coupon/createPay/' + orderNumber,{token:localStorage.getItem('token')}).then(res => {
if (res.code == 200) {
this.payWayRun(res.data);
} else {

View File

@ -233,7 +233,7 @@
/* 调用支付 */
payRealFunction (isSupport) {
req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`).then(({ code, data, message }) => {
req.axiosGet(`/key/coupon/createPay/${this.activeOrder.order_number}`,{token:localStorage.getItem('token')}).then(({ code, data, message }) => {
if (code === 403) {
this.popFunction({ title: '温馨提示', text: message, status: 2, b_text: '我知道了', show: true })
this.toPage(3)