|
[多端开发]
shareAction模块分享图片到企业微信失败
[复制链接]
本帖最后由 gd932fz 于 2024-2-23 15:00 编辑
shareAction模块分享图片到企业微信失败,分享到微信是成功的,就企业微信不行
api.download({
url: 'https://picsum.photos/200/300',
savePath: 'fs://test.jpg',
report: true,
cache: true,
allowResume: true
}, function(ret, err) {
if (ret.state == 1) {
//下载成功
var sharedModule = api.require('shareAction');
sharedModule.share({
images: ['fs://test.jpg'],
type: 'image'
});
} else {
}
});
|
|