今天升级了微信开发工具的最新版本
突然发现wx.getUserInfo不工作了,在success, fail, complete 三个方法都没有得到打印输出
请问是什么问题
代码:
console.log(‘start get user info’)
wx.getUserInfo({
withCredentials: false,
success: function(res) {
console.log('get user info success: ', res)
that.globalData.userInfo = res.userInfo
typeof cb == “function” && cb(that.globalData.userInfo)
},
fail: function(res) {
console.log('get user info failed: ', res)
},
complete: function(res) {
console.log('get user info complete ', res)
}
})
以上代码执行结果只输出
start get user info
求解决