fix download mihomo template

This commit is contained in:
mercury
2025-01-18 23:32:31 +04:00
parent 5b4d3b5627
commit 3dac9416ca
+1 -8
View File
@@ -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);
}