diff --git a/app/Controllers/LinkController.php b/app/Controllers/LinkController.php index e6084f9f..6df69518 100644 --- a/app/Controllers/LinkController.php +++ b/app/Controllers/LinkController.php @@ -269,21 +269,8 @@ class LinkController extends BaseController $mu = (int)$request->getQueryParams()["mu"]; } - $client_type=-2; - - if (isset($request->getQueryParams()["v2ray"])) { - if ($request->getQueryParams()["v2ray"] == 1){ - $client_type=11; - } - } - elseif (isset($request->getQueryParams()["ssd"])) { - if ($request->getQueryParams()["ssd"] == 1){ - $client_type=0; - } - } - $newResponse = $response->withHeader('Content-type', ' application/octet-stream; charset=utf-8')->withHeader('Cache-Control', 'no-store, no-cache, must-revalidate')->withHeader('Content-Disposition', ' attachment; filename='.$token.'.txt'); - $newResponse->getBody()->write(LinkController::GetSSRSub(User::where("id", "=", $Elink->userid)->first(), $mu, $max, $client_type)); + $newResponse->getBody()->write(LinkController::GetSSRSub(User::where("id", "=", $Elink->userid)->first(), $mu, $max)); return $newResponse; default: break; @@ -1508,15 +1495,15 @@ FINAL,Proxy'; return $bash; } - public static function GetSSRSub($user, $mu = 0, $max = 0, $client_type = -2) + public static function GetSSRSub($user, $mu = 0, $max = 0) { - if ($client_type==-2) { + if ($mu==0||$mu==1) { return Tools::base64_url_encode(URL::getAllUrl($user, $mu, 0, 1)); } - elseif ($client_type==11){ + elseif ($mu==2){ return Tools::base64_url_encode(URL::getAllVMessUrl($user)); } - elseif ($client_type==0) { + elseif ($mu==3) { return Tools::base64_url_encode(URL::getAllSSDUrl($user)); } } diff --git a/resources/views/material/user/index.tpl b/resources/views/material/user/index.tpl index 7eaafdf0..bb803878 100644 --- a/resources/views/material/user/index.tpl +++ b/resources/views/material/user/index.tpl @@ -341,7 +341,7 @@
filter_2 任务栏右下角右键纸飞机图标->服务器订阅->SSD服务器订阅设置,将订阅链接设置为下面的地址,确定之后再更新SSD服务器订阅。
filter_3 然后选择一个合适的服务器,代理规则选“绕过局域网和大陆”,然后即可上网。
filter_4 备用导入节点方法:点击这里,然后右键小飞机->从剪贴板复制地址
-flash_auto 节点订阅地址:
flash_auto 节点订阅地址:
flash_auto 单端口节点订阅地址: - -