代码语言:javascript复制
wx.getUserInfo({
success: function(p) {
console.log(JSON.stringify(p))
wx.request({
url: `${httpUrl.url}`,
method: 'POST',
data: {
code: res.code,
encryptedData: p.encryptedData,
iv: p.iv
},
success: function(d){
console.log(JSON.stringify(d))
}
})
}
})