src/Leevel/Http/Request.php
protected function normalizeQueryString(?string $queryString): string
    {
        if (!$queryString && '0' !== $queryString) {
            return '';
        }

        $parts = [];

        foreach (explode('&', $queryString) as $item) {
            if ('' === $item && '0' !== $item) {
                continue;
            }

            $parts[] = $item;
        }

        return implode('&', $parts);
    }
protected function normalizeQueryString(?string $queryString): string
    {
        if (!$queryString && '0' !== $queryString) {
            return '';
        }

        $parts = [];

        foreach (explode('&', $queryString) as $item) {
            if ('' === $item && '0' !== $item) {
                continue;
            }

            $parts[] = $item;
        }

        return implode('&', $parts);
    }
格式化查询参数.

@param null|string $queryString

@return string