getShareInfo:fail?
发布于 7 年前 作者 fzou 778 次浏览 来自 问答

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({
                successfunction (res{
                    if(res.code){
                    wx.getShareInfo({
                        shareTicket: options.shareTicket, 
                        successfunction (res{
                          
                        },
                        failfunction (res{
                             wx.showModal({
                                title'提示',
                                content'getShareInfofail:'+ res.errMsg,
                                confirmText"确定",
                                })
                        }
                    });
                    }
                }, 
                failfunction (res{
                }
            });
        }
  }
 },
1 回复

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

回到顶部