wx.saveImageToPhotosAlbum ios在相册可以看到,安卓的不行。跟踪信息是执行成功
wx.downloadFile({
url: vurl,
success: function (res) {
console.log(“suc:” + res)
console.log(res.tempFilePath);
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: function (res1) {
console.log(“suc_saveImageToPhotosAlbum:” + res1)
wx.showToast({
title: ‘保存成功’,
icon: ‘loading’,
duration: 100
});
console.log(“suc_saveImageToPhotosAlbum:” + res1)
},
fail: function (res2) {
console.log(“err_saveImageToPhotosAlbum:” + res1)
wx.showToast({
title: ‘保存失败’,
icon: ‘loading’,
duration: 500
});
console.log(res2)
console.log(‘fail’)
}
})
},
fail: function (res1) {
wx.showToast({
title: vurl,
icon: ‘loading’,
duration: 1000
})
}
});