微信小程序获取iv,encryptedData参数
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)) } }) } })