🔢 修复(substore): 调整 Alpha Air 特征节点编号位置
This commit is contained in:
@@ -120,7 +120,10 @@ async function operator(proxies) {
|
||||
originalIndex,
|
||||
countryCode: regionCode,
|
||||
cityCode,
|
||||
normalizedFlag,
|
||||
regionPrefix,
|
||||
provider,
|
||||
multiplier,
|
||||
providerRank: provider ? 1 : 0,
|
||||
multiplierValue: multiplier ? Number(multiplier.replace(/X$/i, '')) : Number.NEGATIVE_INFINITY,
|
||||
normalizedName: [normalizedFlag, regionPrefix, provider, multiplier].filter(Boolean).join(' ').trim()
|
||||
@@ -166,7 +169,13 @@ async function operator(proxies) {
|
||||
if (!item.normalizedName || !item.countryCode) return item.proxy;
|
||||
|
||||
currentCount[item.countryCode] = (currentCount[item.countryCode] || 0) + 1;
|
||||
item.proxy.name = `${item.normalizedName} ${String(currentCount[item.countryCode]).padStart(2, '0')}`;
|
||||
item.proxy.name = [
|
||||
item.normalizedFlag,
|
||||
item.regionPrefix,
|
||||
String(currentCount[item.countryCode]).padStart(2, '0'),
|
||||
item.provider,
|
||||
item.multiplier
|
||||
].filter(Boolean).join(' ').trim();
|
||||
return item.proxy;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user