增加基础配置
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2025-07-12 11:59:33 +08:00
parent fb50096e66
commit 8a3ab17b25
44 changed files with 1599 additions and 66 deletions

View File

@ -15,6 +15,7 @@ declare(strict_types=1);
namespace App\Middleware;
use App\Context\ApiUrlContext;
use App\Service\QueueService;
use App\Service\SysService;
use Hyperf\Di\Annotation\Inject;
@ -51,6 +52,8 @@ class RequestLogsMiddleware implements MiddlewareInterface
{
$method = $request->getMethod(); // 请求方法
$uri = $request->getUri()->getPath(); // 请求的URI路径
ApiUrlContext::setApiUrl($uri);
$params = $request->getMethod() === 'POST' ? $request->getParsedBody() : $request->getQueryParams();
$clientIp = $this->sysService->getClientIpInfo($request);