From fbed66c9ebdefebff13cc2c09fb376807ad1b291 Mon Sep 17 00:00:00 2001 From: Soul Dark <1012179378@qq.com> Date: Mon, 13 Aug 2018 21:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4SSD=20V2RAY=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controllers/LinkController.php | 23 +++++------------------ resources/views/material/user/index.tpl | 6 +++--- 2 files changed, 8 insertions(+), 21 deletions(-) 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 节点订阅地址:

点击这里查看Windows傻瓜式教程

@@ -378,8 +378,8 @@

flash_auto 单端口节点订阅地址: - -