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