mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-06-04 11:13:59 +08:00
fix: 修复文件预览未使用代理策略的问题
This commit is contained in:
parent
8116c78dda
commit
15a51e0dd0
@ -31,7 +31,12 @@ async function previewFile(req, res) {
|
|||||||
.filter((i) => i.length)
|
.filter((i) => i.length)
|
||||||
.map(async (url) => {
|
.map(async (url) => {
|
||||||
try {
|
try {
|
||||||
return await download(url, file.ua);
|
return await download(
|
||||||
|
url,
|
||||||
|
file.ua,
|
||||||
|
undefined,
|
||||||
|
file.proxy,
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
errors[url] = err;
|
errors[url] = err;
|
||||||
$.error(
|
$.error(
|
||||||
|
@ -411,7 +411,6 @@ async function produceArtifact({
|
|||||||
const file = findByName(allFiles, name);
|
const file = findByName(allFiles, name);
|
||||||
if (!file) throw new Error(`找不到文件 ${name}`);
|
if (!file) throw new Error(`找不到文件 ${name}`);
|
||||||
let raw = '';
|
let raw = '';
|
||||||
console.log(file);
|
|
||||||
if (file.type !== 'mihomoProfile') {
|
if (file.type !== 'mihomoProfile') {
|
||||||
if (
|
if (
|
||||||
content &&
|
content &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user