From be31bcb658a3c39c029ab4de67c1272a896c5537 Mon Sep 17 00:00:00 2001 From: Yurun Date: Sat, 27 Apr 2024 10:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/grpc/src/Middleware/ActionMiddleware.php | 4 ++++ src/Server/Http/Middleware/ActionMiddleware.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/grpc/src/Middleware/ActionMiddleware.php b/src/Components/grpc/src/Middleware/ActionMiddleware.php index 4266e1d78a..b6e6265144 100644 --- a/src/Components/grpc/src/Middleware/ActionMiddleware.php +++ b/src/Components/grpc/src/Middleware/ActionMiddleware.php @@ -218,6 +218,10 @@ private function prepareActionParams(Request $request, RouteResult $routeResult) $headers[$name] = implode(', ', $values); } } + else + { + $allData = []; + } /** @var ActionMethodItem[] $actionMethodCache */ foreach ($actionMethodCache as $actionMethodCacheItem) diff --git a/src/Server/Http/Middleware/ActionMiddleware.php b/src/Server/Http/Middleware/ActionMiddleware.php index 14fa0161b6..26584a72c2 100644 --- a/src/Server/Http/Middleware/ActionMiddleware.php +++ b/src/Server/Http/Middleware/ActionMiddleware.php @@ -206,7 +206,7 @@ private function prepareActionParams(Request $request, RouteResult $routeResult) } else { - $extractData = []; + $allData = []; } /** @var ActionMethodItem[] $actionMethodCache */