From 7df1fff97a11a926e702ffbdfcbe58555d2e9307 Mon Sep 17 00:00:00 2001 From: Rico Date: Fri, 11 Jan 2019 00:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E7=BD=AE=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E9=93=BE=E6=8E=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utils/TelegramProcess.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Utils/TelegramProcess.php b/app/Utils/TelegramProcess.php index 98cfdf52..ecca8ecc 100644 --- a/app/Utils/TelegramProcess.php +++ b/app/Utils/TelegramProcess.php @@ -8,7 +8,9 @@ use App\Controllers\LinkController; class TelegramProcess { - private static $all_rss = [ "?mu=0" => "SSR普通订阅" , + private static $all_rss = [ + "clean_link"=>"重置订阅", + "?mu=0" => "SSR普通订阅" , "?mu=1" => "SSR单端口订阅", "?mu=3"=> "SS/SSD订阅", "?mu=2" => "V2ray订阅", @@ -26,6 +28,10 @@ class TelegramProcess $reply_message = self::$all_rss[$command].": ".$subUrl.$ssr_sub_token.$command.PHP_EOL; $bot->sendMessage($message->getChat()->getId(), $reply_message , $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); break; + case ($command=="clean_link"): + $user->clean_link(); + $bot->sendMessage($message->getChat()->getId(), "链接重置成功" , $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to); + break; default: $bot->sendMessage($message->getChat()->getId(), "???", $parseMode = null, $disablePreview = false, $replyToMessageId = $reply_to);