feat: 支持单条订阅和组合订阅配置 "不查询订阅流量信息"; 支持订阅链接参数传入 noFlow 强制指定 "不查询订阅流量信息"

This commit is contained in:
xream committed 2026-08-02 19:07:08 +08:00
1 parent 47ce75a444
commit 2700c8ca50
10 files changed
+529 -39

No files matched your search

+4 -1
View File
@@ -243,6 +243,7 @@ export default async function download(
undefined,
undefined,
preprocess,
options,
);
} catch (e) {
$.error(
@@ -266,6 +267,7 @@ export default async function download(
undefined,
undefined,
preprocess,
options,
).catch((e) => {
$.error(
`乐观缓存: URL ${safeUrl} 异步更新缓存发生错误 ${
@@ -310,6 +312,7 @@ export default async function download(
await produceArtifact({
type: 'file',
name,
noFlow: options?.noFlow,
}),
returnRaw,
);
@@ -492,7 +495,7 @@ export default async function download(
// 检查订阅有效性
if ($arguments?.validCheck) {
if ($arguments?.validCheck && !$arguments?.noFlow && !options?.noFlow) {
await validCheck(
parseFlowHeaders(
await getFlowHeaders(