改成post调用

This commit is contained in:
2026-06-10 17:07:33 +08:00
parent f5f6885318
commit 6ca716e56c
3 changed files with 6 additions and 13 deletions

View File

@@ -283,10 +283,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)

View File

@@ -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)

View File

@@ -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("回调成功")