收藏
回答

wx.getShareInfo接口报错

问题模块
API和组件

如题,已经设置应用进入的场景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

最后一次编辑于  2017-06-07  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答