关于wx.getUserProfile()

小程序 文章 2021-04-08 13:02 419 0 全屏看文

AI助手支持GPT4.0

关于wx.getUserProfile()About wx.getUserProfile()

关于wx.getUserProfile()

wx.getUserProfile()为什么用这个方法获取到用户授权后再小程序的设置里没有用户信息选项,无法关闭授权

wx.getUserProfile () why is there no user information option in the settings of the applet after obtaining user authorization with this method, so authorization cannot be turned off

回答:

社区技术运营专员-Jahozheng:

周知:getUserInfo 开发版 & 体验版 已对齐 getUserInfo 匿名表现,正式版将于 4月13日 正式对齐 getUserInfo 匿名表现。请开发者使用 getUserProfile 获取用户信息。开发版 & 体验版 scope.userInfo 调整将于 4月13日 对齐。

pc微信暂不支持wx.getUserProfile,可以参考示例代码进行兼容

https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html#%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81

小程序登录、用户信息相关接口调整说明:https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801


海丽且目:sultan
苏军:

因为这个每次调用都需要授权

-EOF-

AI助手支持GPT4.0