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): [];