小程序 wx.login + code2Session 获取不到unionid ?

小程序 文章 2021-03-09 12:21 671 0 全屏看文

AI助手支持GPT4.0

小程序 wx.login + code2Session 获取不到unionid ?The applet wx.login + code2Session can't get the unionid?

小程序 wx.login + code2Session 获取不到unionid ?

开发者可以直接通过 wx.login + code2Session 获取到该用户 UnionID,无须用户授权。 这个我怎么试了发现 没有返回unionid? 是还没有更新吗

Developers can go directly through wx.login +Code2session obtains the unionid of the user without user authorization. How did I try to find that I didn't return unionid? Has it not been updated yet

回答:

peng:

unionid是根据绑定的开放平台生成,一个小程序可以帮多个开放平台,每个开放平台下的uninoid不一样。

李伟豪:

这个需要把小程序绑定在开放平台https://open.weixin.qq.com下,你绑定了吗?

Mr.Zhao:

没有绑定微信开放平台

-EOF-

AI助手支持GPT4.0