diff --git a/src/Controllers/SubController.php b/src/Controllers/SubController.php index 257121f52..d49747914 100755 --- a/src/Controllers/SubController.php +++ b/src/Controllers/SubController.php @@ -33,8 +33,7 @@ final class SubController extends BaseController $subtype_list = ['json', 'clash', 'sip008', 'singbox', 'v2rayjson', 'sip002', 'ss', 'v2ray', 'trojan']; if (! $_ENV['Subscribe'] || - ! in_array($subtype, $subtype_list) || - 'https://' . $request->getHeaderLine('Host') !== $_ENV['subUrl'] + ! in_array($subtype, $subtype_list) ) { return ResponseHelper::error($response, $err_msg); } diff --git a/src/Services/Tg/Hook/Mod/Ann.php b/src/Services/Tg/Hook/Mod/Ann.php index 42ce0228f..72819381a 100644 --- a/src/Services/Tg/Hook/Mod/Ann.php +++ b/src/Services/Tg/Hook/Mod/Ann.php @@ -107,7 +107,7 @@ class Ann extends Base { return $this->find($aParam); } - + public function post($aParam) { $iId = $aParam["aArg"][1] ?? false;