用的这个wx.getUserProfile这个方法,打印res,获取不到rawData、signature、encryptedData这些敏感数据
wx.getUserProfile获取敏感数据?wx.getUserProfile to get sensitive data?
wx.getUserProfile获取敏感数据?用的这个wx.getUserProfile这个方法,打印res,获取不到rawData、signature、encryptedData这些敏感数据
I used this wx.getUserProfile This method can print res and cannot obtain sensitive data such as rawdata, signature and encrypted data
回答:
你把调试基础库调到 2.16.0 就可以了,虽然这些数据没什么用
看这里 https://developers.weixin.qq.com/community/develop/article/doc/000c8ce9a10070794cfbb0c085b013
常规问题,社区都有答案,学会搜索;
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html
这些字段出现的最低版本为 2.16.0。当然实际真机也并未出现这些字段。这些字段目前的使用价值也不大了,建议弃用。