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
c5b56da958
commit
71c42765fc
@ -51,6 +51,9 @@ class TelegramController extends Controller
|
|||||||
{
|
{
|
||||||
$msg = $this->msg;
|
$msg = $this->msg;
|
||||||
if (!$msg->is_private) return;
|
if (!$msg->is_private) return;
|
||||||
|
if (!isset($msg->args[0])) {
|
||||||
|
abort(500, '参数有误,请携带订阅地址发送');
|
||||||
|
}
|
||||||
$subscribeUrl = $msg->args[0];
|
$subscribeUrl = $msg->args[0];
|
||||||
$subscribeUrl = parse_url($subscribeUrl);
|
$subscribeUrl = parse_url($subscribeUrl);
|
||||||
parse_str($subscribeUrl['query'], $query);
|
parse_str($subscribeUrl['query'], $query);
|
||||||
|
Loading…
Reference in New Issue
Block a user