参数传递订阅器参数

This commit is contained in:
cmliu
2025-11-06 00:03:00 +08:00
parent e9f4d5c4ac
commit 230834459f

View File

@@ -207,7 +207,7 @@ export default {
let 订阅内容 = '';
if (订阅类型 === 'mixed') {
if (config_JSON.优选订阅生成.local) { // 本地生成订阅
if (!url.searchParams.has('sub') && config_JSON.优选订阅生成.local) { // 本地生成订阅
const 完整优选列表 = config_JSON.优选订阅生成.本地IP库.随机IP ? (await 生成随机IP(request, config_JSON.优选订阅生成.本地IP库.随机数量))[0] : await env.KV.get('ADD.txt') ? await 整理成数组(await env.KV.get('ADD.txt')) : (await 生成随机IP(request, config_JSON.优选订阅生成.本地IP库.随机数量))[0];
const 优选API = [], 优选IP = [];
for (const 元素 of 完整优选列表) {