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' ); } }); |