// 无法工作
uni.share({
"title": "title",
"summary": "summary",
"provider": "weixin",
"scene": "WXSceneSession",
"type": 0,
// 或者 https://example.com/图片.jpg
"imageUrl": "https://example.com/%E5%9B%BE%E7%89%87.jpg",
"href": "https://example.com/some"
})
uni.share({
"provider": "weixin",
"scene": "WXSceneSession",
"type": 2,
// 或者 https://example.com/图片.jpg
"imageUrl": "https://example.com/%E5%9B%BE%E7%89%87.jpg",
})
将同一份图片重名为为英文上传至服务器获得纯英文路径的url
// 正常工作
uni.share({
"title": "title",
"summary": "summary",
"provider": "weixin",
"scene": "WXSceneSession",
"type": 0,
"imageUrl": "https://example.com/photo.jpg",
"href": "https://example.com/some"
})
uni.share({
"provider": "weixin",
"scene": "WXSceneSession",
"type": 2,
"imageUrl": "https://example.com/photo.jpg",
})
0 个回复