- 安卓手机打不开小程序,部分IOS手机也打不开小程序
[图片][图片][图片]
2020-08-12 - getUserInfo:fail invalid scope
- 当前 Bug 的表现(可附上截图) {"errMsg":"getUserInfo:fail invalid scope","err_code":"-12001"} - 提供一个最简复现 Demo <view class="buttonbox"> <button open-type="getUserInfo" class="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">授权登陆</button> </view>//授权登录动作(缓存userInfo) onGotUserInfo(e) { console.log("确认授权点击:",e); try { wepy.setStorageSync("userInfo",e.detail.userInfo); } catch (error) { collectErrInfo(error, 'onGotUserInfo setStorageSync'); } if (e && e.detail && e.detail.userInfo) { this.userInfo = e.detail.userInfo; // this.$parent.globalData.userInfo = e.detail.userInfo; login(this); this.$apply(); } else { collectErrInfo(e, 'onGotUserInfo'); } };
2018-10-26 - onCheckForUpdate,版本更新回调,总数抛这个异常
bug异常 thirdScriptError undefined is not an object (evaluating 'r.apply');at App onLaunch function;at onCheckForUpdate callback function https://lib/WAService.js:1:100160 https://lib/WAService.js:1:395965 forEach@[native code] Zd@https://lib/WAService.js:1:395929 https://lib/WAService.js:1:395896 emit@https://lib/WAService.js:1:205071 https://lib/WAService.js:1:395774 https://lib/WAService.js:1:168290 S@https://lib/WAService.js:1:1731 global code 代码片段 if(wx.getUpdateManager){ const updateManager = wx.getUpdateManager(); updateManager.onCheckForUpdate(); updateManager.onUpdateReady(function(err){ console.log('跟新版本准备好了', err); updateManager.applyUpdate(); wx.showToast({ icon: 'success', title: '新版本已经准备好' }); }); updateManager.onUpdateFailed(function (err) { console.log('更新版本失败', err); updateManager.onCheckForUpdate(); }); }
2018-10-23