【功能优化】支付:查询支付订单时,增加 sync 主动轮询,解决支付宝、微信存在延迟的问题

This commit is contained in:
YunaiV
2024-09-24 09:04:57 +08:00
parent 27260f4a75
commit a1995c88e8
3 changed files with 40 additions and 24 deletions
+10 -5
View File
@@ -270,11 +270,7 @@ export default class SheepPay {
// 支付结果跳转,success:成功,fail:失败
payResult(resultType) {
sheep.$router.redirect('/pages/pay/result', {
id: this.id,
orderType: this.orderType,
payState: resultType,
});
goPayResult(this.id, this.orderType, resultType);
}
// 引导绑定微信
@@ -359,3 +355,12 @@ export function getPayMethods(channels) {
}
return payMethods;
}
// 支付结果跳转,success:成功,fail:失败
export function goPayResult(id, orderType, resultType) {
sheep.$router.redirect('/pages/pay/result', {
id,
orderType,
payState: resultType,
});
}