小程序获取unionId现在必须要关注公众号吗?

小程序 文章 2020-09-03 11:41 0 20 全屏看文

小程序获取unionId现在必须要关注公众号吗?Do I have to pay attention to the official account to obtain unionId by the mini program?

小程序获取unionId现在必须要关注公众号吗?

看之前的文档是说获取unionID必须要关注过公众号,但是实际测试发现没有关注过公众号通过wx.login也能获取到unionId,所以想问下现在还是按文档来的吗?

Looking at the previous document, it is said that getting unionID must pay attention to the official account, but the actual test found that no official account was passed. wx.login Unionid can also be obtained, so would you like to ask whether it is still based on documents?

回答:

圣殿骑士:

小程序可以获取,公众号也可以,但是你要关联起来

比如关注公众号

锅巴:

是的,开发必须要按照官方给出的文档一步一步来

微喵网络:

你想啊,如果有的没有公众号呢?小程序绑定到开放平台就不给unionid了吗?

-EOF-