From b585fbbc538a215c8d6464581cb3ae01865ef4ea Mon Sep 17 00:00:00 2001 From: hellcat Date: Fri, 8 May 2026 17:58:29 +0800 Subject: [PATCH] no message --- src/Services/Subscribe/Clash.php | 4 ++++ src/Services/Subscribe/V2Ray.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Services/Subscribe/Clash.php b/src/Services/Subscribe/Clash.php index 259a1a909..7f88f1196 100755 --- a/src/Services/Subscribe/Clash.php +++ b/src/Services/Subscribe/Clash.php @@ -25,6 +25,10 @@ final class Clash extends Base foreach ($nodes_raw as $node_raw) { $node_custom_config = json_decode($node_raw->custom_config, true); + if ($node_raw->country_emoji) { + $node_raw->name = $node_raw->country_emoji.' '.$node_raw->name; + } + switch ((int) $node_raw->sort) { case 0: $plugin = $node_custom_config['plugin'] ?? ''; diff --git a/src/Services/Subscribe/V2Ray.php b/src/Services/Subscribe/V2Ray.php index 4de9e8098..c7a9a0ad0 100755 --- a/src/Services/Subscribe/V2Ray.php +++ b/src/Services/Subscribe/V2Ray.php @@ -25,6 +25,10 @@ final class V2Ray extends Base foreach ($nodes_raw as $node_raw) { $node_custom_config = json_decode($node_raw->custom_config, true); + + if ($node_raw->country_emoji) { + $node_raw->name = $node_raw->country_emoji.' '.$node_raw->name; + } if ((int) $node_raw->sort === 111) { $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443);