mac 模拟器1.05.2102010 基础库2.16.0
调用wx.login获取code后,再调用wx.getUserProfile,可能会失败,触发fail函数,error msg: ''getUserProfile:fail can only be invoked by user TAP gesture"。
如果不能同时使用,那如何校验用户信息的准确性或者解密encryptedData呢?
mac 模拟器1.05.2102010 基础库2.16.0
调用wx.login获取code后,再调用wx.getUserProfile,可能会失败,触发fail函数,error msg: ''getUserProfile:fail can only be invoked by user TAP gesture"。
如果不能同时使用,那如何校验用户信息的准确性或者解密encryptedData呢?
wx.login和wx.getUserProfile现在没关系了。各玩各的吧。
https://developers.weixin.qq.com/community/develop/article/doc/00062eab0508684539cba249f59413
是的,不能在wx.login 的callback 里用,我是页面onload 时候存了code(),更新状态管理或者globaldata 都行。
然后getUserProfile 取了就行
我是先调用的wx.getUserProfile