1.退出登录,不建议使用uni.reLaunch
原因:uni.reLaunch会导致url上的code没有刷新,微信接口会返回错误信息,code被重复使用了
解决: window.location.href = https://open.weixin.qq.com/connect/oauth2/authorize?appid=。。。。 , 直接跳转授权接口链接,刷新code
1.退出登录,不建议使用uni.reLaunch
原因:uni.reLaunch会导致url上的code没有刷新,微信接口会返回错误信息,code被重复使用了
解决: window.location.href = https://open.weixin.qq.com/connect/oauth2/authorize?appid=。。。。 , 直接跳转授权接口链接,刷新code