iOS和安卓微信支付success回调中使用wx.reLaunch表现不一致
wx.requestPayment({ 'timeStamp' : pay.timeStamp, 'nonceStr' : pay.nonceStr, 'package' : pay.package, 'signType' : pay.signType, 'paySign' : pay.paySign, 'success' : function (res) {
wx.reLaunch({ url: '/pages/success/success'
}, 'fail' : function (res) { console.log(res); _this.setData({ CMO: true }); wx.showToast({ title: '支付失败' , icon: 'none' , duration: 2000 }); } }) |
iOS正常,Android报错【 fail can not invoke relaunch in background】