wx.downloadFile 开发板和体验版都能保存成功,发布版却不行,咋回事
wx.downloadFile({
url: this.data.qrcode,
success: function (res) {
console.log(res)
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: function (res) {
console.log(res)
showSuccess(“以保存”);
},
fail: function (res) {
showModel(“保存失败”,res.errMsg);
}
})
},
fail: function () {
showModel(“保存失败”, res.errMsg);
}
})