wx.getUserInfo获取不到unionId?

小程序 文章 2021-01-29 17:21 531 0 全屏看文

AI助手支持GPT4.0

wx.getUserInfo获取不到unionId?Wx.getUserInfo can't get unionId?

wx.getUserInfo获取不到unionId?

如下截图,小程序调用wx.getUserInfo 解密encryptedData数据后,除unionId外 都可以解析出来。获取不到unionId 是因为主体下只有一个小程序 所有没有unionId么

The following screenshot, small program call wx.getUserInfo After decrypting encrypted data, all data can be parsed except unionid. Can't get unionid because there is only one applet under the main body, and there is no unionid

回答:

跨商通:

这种情况下没有unionid的原因太多,去了解一下unionid机制吧。

1、有没有绑开放平台;

2、有没有关注同主体公众号;

Ain:

好像是的,unionId是数据互通用的把

默认²⁰²⁰:

绑定了吗?

-EOF-

AI助手支持GPT4.0