wx.requestPayment 在Android下支付问题
发布于 5 年前 作者 rcao 1450 次浏览 来自 问答

支付完成功之后在Android下调用 wx.reLaunch 报错 , ios没问题,reLaunch: fail can not invoke reLaunch in background

2 回复

为什么加个延迟就好了呢

setTimeout(() => {
              wx.reLaunch({
                url: `/pages/xxx`
              })
            }, 200)

加个定时器试试

回到顶部