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);