From c5b5abab1a0c82c4d5c82506ee2b1e33724dc798 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Wed, 20 May 2020 15:57:38 +0800 Subject: [PATCH] update telegram --- app/Http/Controllers/Guest/TelegramController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Guest/TelegramController.php b/app/Http/Controllers/Guest/TelegramController.php index 19c12803..d6f36075 100644 --- a/app/Http/Controllers/Guest/TelegramController.php +++ b/app/Http/Controllers/Guest/TelegramController.php @@ -49,7 +49,8 @@ class TelegramController extends Controller if (!$msg->is_private) return; $subscribeUrl = $msg->args[0]; $subscribeUrl = parse_url($subscribeUrl); - $token = parse_str($subscribeUrl['query'])['token']; + parse_str($subscribeUrl['query'], $query); + $token = $query['token']; if (!$token) { abort(500, '订阅地址无效'); }