- 当前 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');
}
};
一样的bug
2019.11.08 10:07同样的报错