unionid并不能都查到

小程序 文章 2020-08-22 17:41 640 0 全屏看文

AI助手支持GPT4.0

unionid并不能都查到Unionid can not be found

unionid并不能都查到
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.getUserInfo 微信安卓客户端 6.5.3 2.0.0

https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html

客户关注我们的公众号后,我们反查上面的接口,但是并不是所有的请求都能返回unionid

Framework type problem type API / component name terminal type wechat version basic library version applet bug wx.getUserInfo Wechat Android client 6.5.3 2.0.0 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html When customers are concerned about our official account, we check the interface above, but not all requests can return to unionid.

回答:

peng:

需要绑定在开放平台:https://open.weixin.qq.com/,才会有unionid。

可详读UnionID机制:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/union-id.html

公子小白:绑定了,我是大部分能查到,极少数不能查到
上炁:

登录时候就会产生一个unionid

公子小白:登录指的是什么啊?登录微信,还是关注公众号,还是别的时间点?
公子小白:我收到关注事件通知后,发起查询,然后有部分查不到unionid,按你说的,这个时候应该产生了。
公子小白:

unionid产生的时间点是什么?

-EOF-

AI助手支持GPT4.0