|
api.download({
url: window.imageUrl+"base64/pic_s/picture1"+user_id+".png",
savePath:'widget://image/share_img/realPath_m.png',
encode:true,
report: true,
cache: false,
allowResume: true
}, function(ret, err) {
//alert(JSON.stringify(ret));
if (ret.state == 1) {
realPath_m ='widget://image/share_img/realPath_m.png';
//console.log(realPath_m);
// alert("S"+realPath_s);
api.download({
url: window.imageUrl+"base64/picture1"+user_id+".png",
encode:true,
report: true,
cache: false,
allowResume: true
}, function(ret, err) {
//alert(JSON.stringify(ret));
if (ret.state == 1) {
//下载成功
realPath = ret.savePath;
shareReady=1;
api.hideProgress();
}
});
}
savePath自定义填写的时候ios系统可以自动下载,但是andriod的不能下载会报网络问题,然后下载图片下载不下来,然后不上传地址的话,微信分享出去,显示不了缩略图!这个要怎么解决
|
|