mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
feature: add telegram reply ticket
This commit is contained in:
parent
6a79ba5744
commit
58aacf562c
@ -154,6 +154,7 @@ class TelegramController extends Controller
|
|||||||
private function replayTicket($ticketId)
|
private function replayTicket($ticketId)
|
||||||
{
|
{
|
||||||
$msg = $this->msg;
|
$msg = $this->msg;
|
||||||
|
if (!$msg->is_private) return;
|
||||||
$user = User::where('telegram_id', $msg->chat_id)->first();
|
$user = User::where('telegram_id', $msg->chat_id)->first();
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
abort(500, '用户不存在');
|
abort(500, '用户不存在');
|
||||||
|
Loading…
Reference in New Issue
Block a user