From 3dac9416ca2e9bab0067e6e90f96499273d010af Mon Sep 17 00:00:00 2001 From: mercury Date: Sat, 18 Jan 2025 23:32:31 +0400 Subject: [PATCH] fix download mihomo template --- app/bot.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/bot.php b/app/bot.php index f1cefa8..76df26b 100644 --- a/app/bot.php +++ b/app/bot.php @@ -5403,14 +5403,7 @@ DNS-over-HTTPS with IP: public function downloadOrigin($type) { - switch ($type) { - case 'sing': - $f = new \CURLFile('/config/sing.json', 'application/json', 'origin.json'); - break; - case 'v2ray': - $f = new \CURLFile('/config/v2ray.json', 'application/json', 'origin.json'); - break; - } + $f = new \CURLFile("/config/$type.json", 'application/json', 'origin.json'); $this->sendFile($this->input['chat'], $f); }