分享图片 真机显示不出来

发布于 7 年前作者 nxu12368 次浏览最后编辑 7 年前来自 ask

var imagepath = canvas.toTempFilePathSync({

x: 10,

y: 10,

width: 1400,

height: 800,

destWidth: 500,

destHeight: 400

});

wx.shareAppMessage({

title: “测试分享”,

imageUrl: imagepath,

});

开发工具上可以显示,真机显示不出来,是不是要发截下来的图片上传上去,这样才可以显示出来


1 回复
chentao
chentao1 楼5 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html