wx.getUserProfile 如何解析openId?

小程序 文章 2021-03-13 22:41 472 0 全屏看文

AI助手支持GPT4.0

wx.getUserProfile 如何解析openId?How does wx.getUserProfile parse openId?

wx.getUserProfile 如何解析openId?

getUserInfo 有encryptedData和iv 后端可以解析openId

wx.getUserProfile 只有用户信息 怎获取openId?


GetUserInfo has encrypteddata and IV backend to parse openid wx.getUserProfile How to get openid only with user information?

回答:

|G.XIAO|:

看看这个 https://developers.weixin.qq.com/community/develop/article/doc/00040885c386f81e96cbf93cf51013

wx.getUserProfile 只能获取用户的头像

wx.login 拿到code,去服务器换取openId

提问之前建议先搜索,一般常规问题社区都有人问过。

觉得有帮助,帮忙点个有用或赞,谢谢


上善若水:1棘
青柠味脉动:

嗯 看错了 没问题了

-EOF-

AI助手支持GPT4.0