src/Core/Router.php
private function parseParams(array $params, array $url_config, array &$addition_params = array())
    {
        $addition_params = $_GET;
        if (empty($params)) {
            $params = $addition_params;
        } elseif (is_array($params) && !empty($addition_params)) {
            if ($url_config['type'] == 2) {
                $params = array_merge($params, $addition_params);
            } else {
                $params += $addition_params;
            }
        }

        return $params;
    }
private function parseParams(array $params, array $url_config, array &$addition_params = array())
    {
        $addition_params = $_GET;
        if (empty($params)) {
            $params = $addition_params;
        } elseif (is_array($params) && !empty($addition_params)) {
            if ($url_config['type'] == 2) {
                $params = array_merge($params, $addition_params);
            } else {
                $params += $addition_params;
            }
        }

        return $params;
    }
解析参数并处理附加参数

@param array $params
@param array $url_config
@param array $addition_params
@return array