src/Core/Application.php
public static function combineParamsAnnotateConfig(array $params = array(), array $annotate_params = array(), $op_mode = 1)
    {
        if (empty($params)) {
            return $annotate_params;
        }

        if (!empty($annotate_params)) {
            $params_set = array();
            foreach ($annotate_params as $params_name => $default_value) {
                if ($op_mode == 1) {
                    $params_value = array_shift($params);
                } else {
                    if (isset($params[$params_name])) {
                        $params_value = $params[$params_name];
                    } else {
                        $params_value = $default_value;
                    }
                }

                if ($params_value != '') {
                    $params_set[$params_name] = $params_value;
                } else {
                    $params_set[$params_name] = $default_value;
                }
            }
            return $params_set;
        }

        return $params;
    }
public static function combineParamsAnnotateConfig(array $params = array(), array $annotate_params = array(), $op_mode = 1)
    {
        if (empty($params)) {
            return $annotate_params;
        }

        if (!empty($annotate_params)) {
            $params_set = array();
            foreach ($annotate_params as $params_name => $default_value) {
                if ($op_mode == 1) {
                    $params_value = array_shift($params);
                } else {
                    if (isset($params[$params_name])) {
                        $params_value = $params[$params_name];
                    } else {
                        $params_value = $default_value;
                    }
                }

                if ($params_value != '') {
                    $params_set[$params_name] = $params_value;
                } else {
                    $params_set[$params_name] = $default_value;
                }
            }
            return $params_set;
        }

        return $params;
    }
合并参数注释配置

@param array $params
@param array $annotate_params
@param int $op_mode 处理参数的方式
@return array