From e2029b055e5eb6826c2e5448f7d3157bc0166693 Mon Sep 17 00:00:00 2001 From: Rico Date: Sat, 9 Mar 2019 11:48:57 +1100 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTGbot=20quan=E7=9A=84?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utils/TelegramProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/TelegramProcess.php b/app/Utils/TelegramProcess.php index 81ba2b14..726f47dc 100644 --- a/app/Utils/TelegramProcess.php +++ b/app/Utils/TelegramProcess.php @@ -41,7 +41,7 @@ class TelegramProcess $bot->sendMessage($user->get_user_attributes("telegram_id"), "两种方法:\n 方法一:\n 1.点击打开以下配置文件\n 2. 选择分享->拷贝到\"Quantumult\"\n 3.选择更新配置\n 方法二:\n 1.长按配置文件\n 2. 选择更多->分享->拷贝\n 3.点击跳转APP,到Quan中保存" , $parseMode = null, $disablePreview = false, $replyToMessageId = null,$replyMarkup=$keyboard); $filepath ='/tmp/tg_'.$ssr_sub_token.'.txt'; $fh = fopen($filepath, 'w+'); - $string = LinkController::GetQuantumult($user,0,3); + $string = LinkController::GetQuantumult($user,3); fwrite($fh, $string); fclose($fh); $bot->sendDocument($user->get_user_attributes("telegram_id"), new \CURLFile($filepath,'','quantumult_'.$ssr_sub_token.'.conf')); From 191e3d19d8566df4493be984e91915c5b5f23708 Mon Sep 17 00:00:00 2001 From: Rico Date: Sun, 10 Mar 2019 18:16:57 +1100 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E8=AE=BE=E7=BD=AE=E6=88=900=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utils/URL.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Utils/URL.php b/app/Utils/URL.php index f9fdfa75..89b4d816 100644 --- a/app/Utils/URL.php +++ b/app/Utils/URL.php @@ -296,7 +296,11 @@ class URL ]; $item['ps'] = $node->name; $item['add'] = $node_explode[0]; - $item['port'] = $node_explode[1]; + if ($node_explode[1]=="0" or $node_explode[1]==""){ + $item['port'] = "443"; + }else{ + $item['port'] = $node_explode[1]; + } $item['id'] = $user->getUuid(); $item['aid'] = $node_explode[2]; $item['net'] = "tcp";