mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-02 09:23:54 +00:00
feat: 支持单条订阅和组合订阅配置 "不查询订阅流量信息"; 支持订阅链接参数传入 noFlow 强制指定 "不查询订阅流量信息"
This commit is contained in:
10 files changed
+529
-39
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user