getUserInfo, 是否不再用wx.authorize而用button授权
发布于 5 年前 作者 xia89 19066 次浏览 来自 问答

1、请问getUserInfo获取用户信息接口,是否不再采用

wx.authorize({scope: 'scope.userInfo'进行授权了,而是直接采用button方式授权

<button  open-type=“getUserInfo” bindgetuserinfo=“bindGetUserInfo”></button>

2、https://developers.weixin.qq.com/miniprogram/dev/api/open.html#wxgetuserinfoobject

教程中有错误  

3 回复

wx.authorize只是检测而已啊

用button 了好像就不需要了。我没用上

没有授权怎么直接调弹窗自动弹出呀

回到顶部