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 &&