mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update telegram
This commit is contained in:
parent
03eb8d0724
commit
c5b5abab1a
@ -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, '订阅地址无效');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user