From 6fb1931c2db82b17f343a2cb288981968522f36d Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 1 May 2024 17:52:17 +0400 Subject: [PATCH] fix choice default template sing-box --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index d4ddab2..3f76d2f 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3747,7 +3747,7 @@ DNS-over-HTTPS with IP: 'web_app' => ['url' => "https://$domain/pac?h=$hash&t=te&ty=$type"], ], [ - 'text' => $this->i18n($pac["default{$type}template"] && !empty($pac["{$type}templates"][$pac["default{$type}template"]]) ? 'off' : 'on'), + 'text' => $this->i18n($pac["default{$type}template"] && !empty($pac["{$type}templates"][base64_decode($pac["default{$type}template"])]) ? 'off' : 'on'), 'callback_data' => "/defaultTemplate $type", ], ];