调用plus.share分享微信图片失败,链接可以成功分享!
sharewx.send({
//content: content,
pictures:plus.io.convertLocalFileSystemURL(currentPage1stPicDownloaded),
//href: url + "?&from=app",
//title: title,
extra: {
scene: scene
},
//thumbs: currentPage1stPicDownloaded == null ? 'appicon.png' : currentPage1stPicDownloaded
}, function() {
plus.nativeUI.toast("分享成功!");
}, function(e) {
plus.nativeUI.toast("分享取消! " + e.message);
});
如上面的参数,分享错误(代码-3),如取消注释,把所有参数都传进去,可以成功分享链接!
pictures:currentPage1stPicDownloaded 也试过了,还试不行?请问到底应该如何分享微信图片呢?应该传入什么参数呢?谢谢!
2 个回复
576501565
看我发过的文章就知道了
e***@163.com - qq:1738957000
pictures的值是array 外面加个[ ]
m***@126.com
一针见血,太好了,就是这个问题,thumbs和pictures都是数组
2018-07-03 12:10