- wx.agentConfig企业微信手机端正常,PC端调用报错,请问何解?
企业微信 Windows端 版本号:3.1.15.3008 企业微信 手机端 版本号:安卓 3.1.15(17569) 调用的API:wx.agentConfig 1、手机端调用正常,请看图 [图片] 2、windows端企业微信,调用报错,无法正常使用 [图片] 请问这是什么情况?
2021-09-10 - 下载文件失败,提示 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"} 请问怎么回事?
2018-08-07