getShareInfo:fail?

发布于 8 年前作者 fzou873 次浏览最后编辑 8 年前来自 ask

getShareInfo:fail data unknow error code iPhone11 系统13.6 微信版本7.0.21

onShow: function (options) {
  let that = this
  if (options && options.scene == 1044) {
 if (options.shareTicket) {
            wx.login({
                success: function (res) {
                    if(res.code){
                    wx.getShareInfo({
                        shareTicket: options.shareTicket, 
                        success: function (res) {
                          
                        },
                        fail: function (res) {
                             wx.showModal({
                                title: '提示',
                                content: 'getShareInfofail:'+ res.errMsg,
                                confirmText: "确定",
                                })
                        }
                    });
                    }
                }, 
                fail: function (res) {
                }
            });
        }
  }
 },
1 回复
na01
na011 楼5 年前

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。