no message

This commit is contained in:
hellcat 2025-04-01 20:16:08 +08:00
parent e5adf66faa
commit aac115feaf
2 changed files with 18 additions and 1 deletions

View File

@ -48,6 +48,16 @@ exit;
$url = 'https://fuc.loc/api/tg/hook';
$url = 'https://fuc.loc/test3';
$data = [

View File

@ -101,8 +101,15 @@ final class HookController
// 查找用户
if (strpos($sText, '/userFind') === 0) {
// Ticket::where("id", $iTicketId)->first()->toArray();
// $iTicketId = $this->trimText($sText, '/ticketFind');
//
// $aTicket = Ticket::where("id", $iTicketId)->first()->toArray();
$iUserId = $this->trimText($sText, '/userFind');
$iUserId = (int) $this->trimText($sText, '/userFind');
$aUser = User::find($iUserId)->toArray();