no message
This commit is contained in:
1 parent
f0658c800a
commit
e5adf66faa
4 files changed
+17
-4
No files matched your search
@@ -8,6 +8,7 @@ use App\Models\Config;
|
||||
use App\Models\TgStep;
|
||||
use App\Models\Ticket;
|
||||
use App\Models\Node;
|
||||
use App\Models\User;
|
||||
use App\Services\Tg\ReportUser as ServiceTgReportUser;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use Psr\Http\Client\ClientExceptionInterface;
|
||||
@@ -98,6 +99,19 @@ final class HookController
|
||||
http_response_code(200);exit;
|
||||
}
|
||||
|
||||
// 查找用户
|
||||
if (strpos($sText, '/userFind') === 0) {
|
||||
|
||||
$iUserId = $this->trimText($sText, '/userFind');
|
||||
|
||||
$aUser = User::find($iUserId)->toArray();
|
||||
|
||||
$this->sendMessage(json_encode($aUser, JSON_PRETTY_PRINT));
|
||||
|
||||
Http::response(200, 'ok');
|
||||
|
||||
}
|
||||
|
||||
// 回复工单
|
||||
if (strpos($sText, '/reply') === 0) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user