wx.requestPayment 在Android下支付问题

发布于 7 年前作者 rcao1574 次浏览最后编辑 7 年前来自 ask

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

2 回复
liaoxiuying
liaoxiuying1 楼6 年前

为什么加个延迟就好了呢

ucheng
ucheng2 楼5 年前
setTimeout(() => {
              wx.reLaunch({
                url: `/pages/xxx`
              })
            }, 200)

加个定时器试试