试了上面没有写错
使用wx.miniapp.shareMiniProgramMessage多端应用失效,如何解决?错误信息:wx.miniapp.shareMiniProgramMessage parameter error: parameter.webpageUrl should be String instead of Undefined;parameter.userName should be String instead of Undefined;parameter.imagePath should be String instead of Undefined;parameter.withShareTicket should be Boolean instead of Undefined;parameter.miniprogramType should be Number instead of Undefined;parameter.scene should be Number instead of Undefined; 以下是我的代码,找不到问题在哪里,上述错误提示好像我没有出现错误,但为何会提示: wx.miniapp.shareMiniProgramMessage({ userName: 'gh_77af01acc***', path: '/pages/index/index', title: '邀请参加聚会', imagePath: '/pages/thumb.png', webpageUrl: 'https://www.qq.com', withShareTicket: true, miniprogramType: 1, scene: 0, success(res) { wx.showToast({ title: '成功:分享小程序', }) console.log(res) }, fail() { wx.showToast({ title: '失败:分享小程序', }) } })
星期四 23:29