微信小程序获取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))
                      }
                    })
                  }
                })

 

posted @ 2022-02-18 11:32  WrYcF  阅读(1342)  评论(0编辑  收藏  举报
Live2D