关于用户授权的问题
<button plain=‘true’ open-type=‘getUserInfo’ bindgetuserinfo=‘onGotUserInfo’>登录</button>
wx.getSetting({
success: res => {
console.log(res)
if (res.authSetting[‘scope.userInfo’] || res.authSetting[‘scope.userInfo’] == true) {
console.log(1)
}
}
})
是不是授权了一次后,后面即使删除小程序也不会弹出授权框就直接获取用户信息了???