src/Core/Application.php
private function initParams($url_params, array $annotate_params = array())
    {
        $url_type = $this->config->get('url', 'type');
        switch ($url_type) {
            case 1:
            case 5:
                $params = self::combineParamsAnnotateConfig($url_params, $annotate_params);
                break;

            case 3:
            case 4:
                $url_params = self::oneDimensionalToAssociativeArray($url_params);
                if (!empty($annotate_params)) {
                    $params = self::combineParamsAnnotateConfig($url_params, $annotate_params, 2);
                } else {
                    $params = $url_params;
                }
                break;

            default:
                if (empty($url_params)) {
                    $params = $annotate_params;
                } elseif (is_array($url_params) && !empty($annotate_params)) {
                    $params = array_merge($annotate_params, $url_params);
                } else {
                    $params = $url_params;
                }
        }

        $this->setParams($params);
    }
private function initParams($url_params, array $annotate_params = array())
    {
        $url_type = $this->config->get('url', 'type');
        switch ($url_type) {
            case 1:
            case 5:
                $params = self::combineParamsAnnotateConfig($url_params, $annotate_params);
                break;

            case 3:
            case 4:
                $url_params = self::oneDimensionalToAssociativeArray($url_params);
                if (!empty($annotate_params)) {
                    $params = self::combineParamsAnnotateConfig($url_params, $annotate_params, 2);
                } else {
                    $params = $url_params;
                }
                break;

            default:
                if (empty($url_params)) {
                    $params = $annotate_params;
                } elseif (is_array($url_params) && !empty($annotate_params)) {
                    $params = array_merge($annotate_params, $url_params);
                } else {
                    $params = $url_params;
                }
        }

        $this->setParams($params);
    }
初始化参数

@param array|string $url_params
@param array $annotate_params