cgi-bin/user/info接口获取不到昵称和头像?

小程序 文章 2021-12-28 23:00 14 0 全屏看文

cgi-bin/user/info接口获取不到昵称和头像?Can't get the nickname and avatar through the cgi-bin/user/info interface?

cgi-bin/user/info接口获取不到昵称和头像?

返回结果:

{"subscribe":1,"openid":"okh7s54jAOHYof5ohRYO5spQ8-Gg","nickname":"","sex":0,"language":"zh_CN","city":"","province":"","country":"","headimgurl":"","subscribe_time":1640660942,"unionid":"onJBx5gYde5tEZNegMN4HEulxyRU","remark":"","groupid":0,"tagid_list":[],"subscribe_scene":"ADD_SCENE_SEARCH","qr_scene":0,"qr_scene_str":""}

返回结果: {"subscribe":1,"openid":"okh7s54jAOHYof5ohRYO5spQ8-Gg","nickname":"","sex":0,"language":"zh_CN","city":"","province":"","country":"","headimgurl":"","subscribe_time":1640660942,"unionid":"onJBx5gYde5tEZNegMN4HEulxyRU","remark":"","groupid":0,"tagid_list":[],"subscribe_scene":"ADD_SCENE_SEARCH","qr_scene":0,"qr_scene_str":""}

回答:

brave:

现在只能通过网页授权才可以获取。

👿:我们就是程序拦截微信公众号中的消息,现在还有其它接口获取吗?
brave:没有了吧,现在国家管得严,都是得用户手动授权才可以获取这类隐私信息了。
拾忆:

👿:不再输出的话,有其它方法获取到吗
拾忆:公众号只能通过网页授权接口去获取了。
青寒:

自定义菜单挂个网页授权链接(起名叫个人中心之类的),用户点进来就让用户授权一下,然后拿到昵称头像信息。

-EOF-