为题解决了吗?现在还是这样
wx.downloadFile 个别机型无法下载文件,报错603300?[图片] 发布的小程序,预览下载文件,同样接口,同样参数,魅族20pro机型报错,苹果和大部分安卓可以 wx.downloadFile({ url: pdf_url, header: { token: uni.getStorageSync("access_token") }, success: function (res) { var Path = res.tempFilePath; if (res.statusCode === 200) { //成功 var Path = res.tempFilePath; wx.openDocument({ filePath: Path, fileType: Type, showMenu: that.shuju.allowDownload == "1" ? true : false, success: function (res) { console.log("打开PDF成功"); }, }); } else { console.log("打开PDF失败"); } }, fail: function (res) { console.log(res); //失败 }, });
2023-11-23