改成post调用
This commit is contained in:
@@ -282,11 +282,9 @@
|
|||||||
} else if (err.errMsg?.includes("fail")) {
|
} else if (err.errMsg?.includes("fail")) {
|
||||||
reason = "支付失败,请重试";
|
reason = "支付失败,请重试";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$u.get(`/bill/paycallback`, {
|
this.$u.post(`/bill/paycallback?orderId=${orderId}&payResult=FAIL`, {}, {
|
||||||
orderId: orderId,
|
WT: this.$getToken() }).then(res => {
|
||||||
payResult: "FAIL"
|
|
||||||
}, { WT: this.$getToken() }).then(res => {
|
|
||||||
console.log("回调成功", res)
|
console.log("回调成功", res)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("回调失败", err)
|
console.log("回调失败", err)
|
||||||
|
|||||||
@@ -285,10 +285,8 @@
|
|||||||
reason = "支付失败,请重试";
|
reason = "支付失败,请重试";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$u.get(`/bill/paycallback`, {
|
this.$u.post(`/bill/paycallback?orderId=${orderId}&payResult=FAIL`, {}, {
|
||||||
orderId: orderId,
|
WT: this.$getToken() }).then(res => {
|
||||||
payResult: "FAIL"
|
|
||||||
}, { WT: this.$getToken() }).then(res => {
|
|
||||||
console.log("回调成功", res)
|
console.log("回调成功", res)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("回调失败", err)
|
console.log("回调失败", err)
|
||||||
|
|||||||
@@ -260,10 +260,7 @@
|
|||||||
reason = "支付失败,请重试";
|
reason = "支付失败,请重试";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$u.get(`/bill/paycallback`, {
|
this.$u.post(`/bill/paycallback?orderId=${orderId}&payResult=FAIL`, {}, {
|
||||||
orderId: orderId,
|
|
||||||
payResult: "FAIL"
|
|
||||||
}, {
|
|
||||||
WT: this.$getToken()
|
WT: this.$getToken()
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log("回调成功")
|
console.log("回调成功")
|
||||||
|
|||||||
Reference in New Issue
Block a user