修正切换和国旗问题
(cherry picked from commit bec2464da85e981636077276de36b2ea5f6c40f4)
This commit is contained in:
@@ -46,6 +46,12 @@ class KrOutboundsList {
|
||||
|
||||
final KROutboundItem item = KROutboundItem(element);
|
||||
|
||||
// 🔍 调试日志:验证 country 字段传递
|
||||
print('🗺️ 构建节点: name="${element.name}", tag="${item.tag}", country="${item.country}"');
|
||||
print(' - element.country: "${element.country}"');
|
||||
print(' - item.country: "${item.country}"');
|
||||
print(' - country.isEmpty: ${item.country.isEmpty}');
|
||||
|
||||
// 检查节点配置是否有效(必须包含 type 字段)
|
||||
if (item.config.isEmpty || !item.config.containsKey('type')) {
|
||||
print('⚠️ 跳过无效节点: ${element.name},配置为空或缺少 type 字段');
|
||||
@@ -66,6 +72,7 @@ class KrOutboundsList {
|
||||
|
||||
configJsonList.add(item.config);
|
||||
keyList[item.tag] = item;
|
||||
print('✅ keyList["${item.tag}"] 已设置,country="${item.country}"');
|
||||
}
|
||||
|
||||
// 将标签分组转换为 KRGroupOutboundList 并添加到 groupOutboundList
|
||||
|
||||
Reference in New Issue
Block a user