From 15a51e0dd032d28f176b9f1a9a66a030484bee0e Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 12 Mar 2025 19:44:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=9C=AA=E4=BD=BF=E7=94=A8=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/restful/preview.js | 7 ++++++- backend/src/restful/sync.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/restful/preview.js b/backend/src/restful/preview.js index 7d5c861..20cbd61 100644 --- a/backend/src/restful/preview.js +++ b/backend/src/restful/preview.js @@ -31,7 +31,12 @@ async function previewFile(req, res) { .filter((i) => i.length) .map(async (url) => { try { - return await download(url, file.ua); + return await download( + url, + file.ua, + undefined, + file.proxy, + ); } catch (err) { errors[url] = err; $.error( diff --git a/backend/src/restful/sync.js b/backend/src/restful/sync.js index f68c013..90ff712 100644 --- a/backend/src/restful/sync.js +++ b/backend/src/restful/sync.js @@ -411,7 +411,6 @@ async function produceArtifact({ const file = findByName(allFiles, name); if (!file) throw new Error(`找不到文件 ${name}`); let raw = ''; - console.log(file); if (file.type !== 'mihomoProfile') { if ( content &&