button组件open-type=getUserInfo的时候,返回参数是个空用户

小程序 文章 2021-04-02 21:02 435 0 全屏看文

AI助手支持GPT4.0

button组件open-type=getUserInfo的时候,返回参数是个空用户When the button component open-type=getUserInfo, the return parameter is an empty user

button组件open-type=getUserInfo的时候,返回参数是个空用户
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug button 微信iOS客户端 8.0.2 大部分都试过

这是取到的用户信息,头像是个默认头像,昵称也是默认昵称,试过几个小程序,必现

"{"nickName":"微信用户","gender":0,"language":"","city":"","province":"","country":"","avatarUrl":"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"}"


时候我已经找到问题所在,4月13后,会使用新的接口

Framework type problem type API / component name terminal type wechat version basic library version applet bug button wechat IOS client 8.0.2 most of them have tried. This is the user information obtained. The avatar is the default avatar, and the nickname is also the default nickname. After trying several small programs, we must find "{" nickname ":" wechat user "," gender ": 0," language ":", "city": "," province ":", "country":"","avatarUrl":" https://thirdwx.qlogo.cn/mmopen/vi_ 32 / pogewh4miho4nibh0klmecnjgxquq24zeagt4poc6icriccvgksyxwibcpq4bwmiaigug1icwxaqx6grc9vemzoj8rg / 132 "}", I have found the problem. After April 13, I will use the new interface code fragment < button open type = "getUserInfo" bindetuserinfo "> authorization < / button >

回答:

CitizenFour:

微信官方社区7级专家专用小尾巴

CGS1:

所有终端

Swag:

已经改了

现在用wx.getUserProfile了

CGS1:那button呢?
Swag:
Swag:button也是反悔匿名的了
CGS1:好的,我已找到对应文档,谢谢

-EOF-

AI助手支持GPT4.0