如何换成wx.getUserProfile
那么这几个参数怎么获取呢
wx.getUserInfo 获取到的以上信息,怎么得到?
如何换成wx.getUserProfile?How to change to wx.getUserProfile?
如何换成wx.getUserProfile?如何换成wx.getUserProfile
那么这几个参数怎么获取呢
wx.getUserInfo 获取到的以上信息,怎么得到?
How to change to wx.getUserProfile How to get these parameters wx.getUserInfo How to get the above information?
回答:
getUserProfile 只返回用户信息,不返回身份标识符啊(encryptedData、iv、signature),怎么搞?
那几个参数后端还要的话就照旧调wx.getUserInfo,wx.getUserProfile
是为了获取明文的昵称地区等信息
参考这篇文章吧:
https://developers.weixin.qq.com/community/develop/article/doc/00040885c386f81e96cbf93cf51013