From a94b9715a6f21f2734897e5773f06c63157e23ee Mon Sep 17 00:00:00 2001 From: Orion Date: Sat, 31 Oct 2026 00:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20refactor(core):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8A=82=E7=82=B9=E5=90=8D=E7=A7=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 合并倍率、DIP 和 RESI 标识符展示方式 * 调整节点名称拼接逻辑以支持精简格式 * 更新节点名称输出格式说明注释 --- substore/rename.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/substore/rename.js b/substore/rename.js index 131da84..837cccf 100644 --- a/substore/rename.js +++ b/substore/rename.js @@ -1,6 +1,6 @@ /** * Sub-Store 整合订阅统一重命名脚本 - * - 输出:国旗 国家/地区缩写 序号 [倍率] [DIP] [RESI] [线路] - 机场名 + * - 输出:国旗 国家/地区缩写 序号 [倍率 DIP RESI] 线路 - 机场名 * - 先按机场分组,再在机场内按国家/地区连续编号和集中排序 * - 实验性节点固定为 0.2x */ @@ -325,6 +325,8 @@ async function operator(proxies) { const dedicatedIp = hasDedicatedIp(item.coreName); const residential = hasResidential(item.coreName); const lineLabel = lineLabelOf(item.coreName); + const features = [multiplier, dedicatedIp ? 'DIP' : '', residential ? 'RESI' : ''] + .filter(Boolean).join(' '); const regionLabel = item.regionCode === 'EMBY' ? 'EMBY' : item.regionCode; const flag = item.regionCode === 'EMBY' ? '🏴‍☠️' @@ -332,10 +334,8 @@ async function operator(proxies) { item.proxy.name = [ [flag, regionLabel, sequence].filter(Boolean).join(' '), - multiplier ? `[${multiplier}]` : '', - dedicatedIp ? '[DIP]' : '', - residential ? '[RESI]' : '', - lineLabel ? `[${lineLabel}]` : '', + features ? `[${features}]` : '', + lineLabel, item.airport ? `- ${item.airport}` : '' ].filter(Boolean).join(' '); });