Skip to content

Commit

Permalink
fix get query
Browse files Browse the repository at this point in the history
  • Loading branch information
林文弟 committed Jun 16, 2021
1 parent 2edb55f commit 1b1e558
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Logger/Monolog/Handler/AliyunLogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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): [];
Expand Down

0 comments on commit 1b1e558

Please sign in to comment.