请求的地址方法为:
wx.downloadFile({
url: "https://tapp.yituwuyou.com/resume-0404a3bc63bd49a68dc3850d7e60018dH24-2017-05-25.pdf",
success: function (res) {
var path = res.tempFilePath;
}
})
下面为小程序配置信息
在 调试工具请求, 能够调用本地pdf程序 打开pdf
但是体验版 直接报 downloadFile:fail:url not in domain list
求解答@林超
取消“上传时自动混淆代码”
我也是同样的情况啊,域名配置了,模拟器调试没问题,体验版直接访问就报downloadFile:url not in domain list,打开调试模式,就又可以了,真是很奇怪,不知道是啥情况
我也是这个情况,请问有处理方案么?求指教,急急急急急急