- JSSDK1.4.0版本updateAppMessageShareData报错
今天在做H5分享使用发现onMenuShareAppMessage定义并分享没有问题,但是唯独使用updateAppMessageShareData的时候会报错: [代码]{errMsg:[代码][代码]"updateAppMessageShareData:fail, the permission value is offline verifying"[代码][代码]}[代码] 以下是我定义的代码片段(直接分享给好友没问题): [代码]wx.config({[代码][代码] [代码][代码]debug: [代码][代码]true[代码][代码],[代码][代码] [代码][代码]appId: APPID,[代码][代码] [代码][代码]timestamp,[代码][代码] [代码][代码]nonceStr,[代码][代码] [代码][代码]signature,[代码][代码] [代码][代码]jsApiList: [[代码][代码]'onMenuShareTimeline'[代码][代码], [代码][代码]'onMenuShareAppMessage'[代码][代码]][代码][代码] [代码][代码]});[代码] [代码] [代码][代码]wx.onMenuShareAppMessage({[代码][代码] [代码][代码]title: [代码][代码]'xxxx'[代码][代码],[代码][代码] [代码][代码]desc: [代码][代码]'yyyyy'[代码][代码],[代码][代码] [代码][代码]link: [代码][代码]'https://www.abc.com/event/yyy.html#/?mode=help&uid=222'[代码][代码],[代码][代码] [代码][代码]imgUrl: [代码][代码]'https://www.abc.com/static/images/yyy/middle_logo-de1bf149dc.png'[代码][代码],[代码][代码] [代码][代码]success() {[代码][代码] [代码][代码]console.log([代码][代码]'onMenuShareAppMessage success'[代码][代码]);[代码][代码] [代码][代码]}[代码][代码]});[代码] 执行某个操作,本想修改分享内容,就会出问题: [代码]wx.updateAppMessageShareData({[代码][代码] [代码][代码]title: [代码][代码]'555555555'[代码][代码],[代码][代码] [代码][代码]desc: [代码][代码]'6666666666'[代码][代码],[代码][代码] [代码][代码]link: [代码][代码]'https://www.abc.com/event/yyy.html#/'[代码][代码],[代码][代码] [代码][代码]imgUrl: [代码][代码]''[代码][代码],[代码][代码] [代码][代码]success() {[代码][代码] [代码][代码]console.log([代码][代码]'shareToFriend success'[代码][代码]);[代码][代码] [代码][代码]}[代码][代码]});[代码]
2018-11-11 - jssdk 1.4
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> {"errMsg":"updateTimelineShareData:没有此SDK或暂不支持此SDK模拟"} 这是什么问题
2018-11-22