【功能优化】支付:查询支付订单时,增加 sync 主动轮询,解决支付宝、微信存在延迟的问题
This commit is contained in:
+10
-5
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user