downloadTask = uni.downloadFile({
url: `${downurl.value}&forced=1`,
// filePath: downflpth,
timeout: 1000 * 60 * 60 * 60 * 24,
success: (res) => {
console.log('downloadTask.success:', res)
}, fail: err => {
console.log('downloadTask.fail:', err)
}
有些文件正常下载。
某些文件报错:msg:downloadFile:fail The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received null
看着是参数错误?可是文档的例子不也这么写的吗