Open gulugulu-cy opened 4 months ago
return await RNFetchBlob.config({ fileCache: true, path: filePath, timeout: 6000, addAndroidDownloads: { useDownloadManager: true, notification: false, path: filePath, } }).fetch("GET", url.replace(/\/g, '/')).then(res => { console.log('下载成功', res) return filePath; }).catch(e => { console.log('下载失败', e) return filePath; })
return await RNFetchBlob.config({ fileCache: true, path: filePath, timeout: 6000, addAndroidDownloads: { useDownloadManager: true, notification: false, path: filePath, } }).fetch("GET", url.replace(/\/g, '/')).then(res => { console.log('下载成功', res) return filePath; }).catch(e => { console.log('下载失败', e) return filePath; })