From 1b1e55884b9ff6d8557b9fb54fefdfa34ec033c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=96=87=E5=BC=9F?= Date: Wed, 16 Jun 2021 11:01:39 +0800 Subject: [PATCH] fix get query --- src/Logger/Monolog/Handler/AliyunLogHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Logger/Monolog/Handler/AliyunLogHandler.php b/src/Logger/Monolog/Handler/AliyunLogHandler.php index 6ac4c5d..e38dd96 100644 --- a/src/Logger/Monolog/Handler/AliyunLogHandler.php +++ b/src/Logger/Monolog/Handler/AliyunLogHandler.php @@ -82,8 +82,7 @@ protected function getHeader() protected function getRequestData() { $data = ['__get__' => [], '__post__' => [], '__put__' => [], '__delete__' => []]; - $query = request()->query() ?? []; - $data['__get__'] = array_splice($query,1); + $data['__get__'] = request()->query() ?? []; if (!request()->isMethod('GET')) { if (request()->isJson()) { $body = request()->getContent() ? json_decode(request()->getContent(), true): [];