下载文件失败,提示 fail url scheme is invalid
[代码]/**[代码][代码] [代码][代码]* 下载文件[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]downloadFile: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]wx.showLoading();[代码][代码] [代码][代码]let that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.downloadFile({[代码][代码] [代码][代码]url: that.data.plateInfo.sourceLink,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'res='[代码][代码],res);[代码][代码] [代码][代码]if[代码] [代码](res.statusCode === 200) {[代码][代码] [代码][代码]var[代码] [代码]tempFilePath = res.tempFilePath;[代码][代码] [代码][代码]wx.saveFile({[代码][代码] [代码][代码]tempFilePath: tempFilePath,[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res2) {[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]console.log([代码][代码]'res2='[代码][代码],res2);[代码][代码] [代码][代码]var[代码] [代码]savedFilePath = res2.savedFilePath;[代码][代码] [代码][代码]console.log(savedFilePath);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](err) {[代码][代码] [代码][代码]console.log([代码][代码]'err2='[代码][代码],err);[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]"保存文件失败"[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'none'[代码][代码],[代码][代码] [代码][代码]duration: 2500[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]"下载文件失败"[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'none'[代码][代码],[代码][代码] [代码][代码]duration: 2500[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](err) {[代码][代码] [代码][代码]console.log([代码][代码]'err1='[代码][代码],err);[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]"下载文件失败"[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'none'[代码][代码],[代码][代码] [代码][代码]duration: 2500[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码]其中, that.data.plateInfo.sourceLink = "https://kotdev.oss-cn-shenzhen.aliyuncs.com/201808/07/sns/sns_yknWtsts850807JKJIC5YA.pdf"; 点击下载,提示 {errMsg: "downloadFile:fail url scheme is invalid"} 请问怎么回事?