wx.getShareInfo接口报错
发布于 6 年前 作者 sdu 672 次浏览 来自 问答

如题,已经设置应用进入的场景1044

onLaunch: function (options) {
  //拿到shareTicket
  let shareTicket = options.shareTicket;
  console.log(shareTicket);
  wx.getShareInfo({
    shareTicket: shareTicket,
    success(res) {
      let encryptedData = res.encryptedData;
      let iv = res.iv;
      console.log(iv, encryptedData);
    },
    fail(res) {
      console.log(res.errMsg);
    }
  })
  //调用API从本地缓存中获取数据
  var logs = wx.getStorageSync('logs') || []
  logs.unshift(Date.now())
  wx.setStorageSync('logs', logs)
},

getShareInfo:fail 3200

回到顶部