This commit is contained in:
2026-01-26 18:39:29 +08:00
parent 756271abe1
commit ba26f616ba

View File

@ -181,6 +181,7 @@ const downloadFile = async (item) => {
// 并行下载所有文件 // 并行下载所有文件
const downloadPromises = dataList.map(async (fileData, index) => { const downloadPromises = dataList.map(async (fileData, index) => {
try { try {
// fileData.url = "http://47.108.232.77:9000/image/2025-01-06/081102a5418e4146beea277d18018e07.jpeg";
// 使用fetch获取文件内容 // 使用fetch获取文件内容
const downloadUrl = fileData.url.replace(/^https?:\/\/[^/]+/, '/zyminio'); const downloadUrl = fileData.url.replace(/^https?:\/\/[^/]+/, '/zyminio');
const response = await fetch(downloadUrl); const response = await fetch(downloadUrl);