src/Leevel/Router/OpenApiRouter.php
protected function parseRouterField($method): array
    {
        $result = [];

        foreach ($this->routerField as $f) {
            $field = 'leevel'.ucfirst($f);

            if (property_exists($method, $field)) {
                $result[$f] = $method->{$field};
            }
        }

        return $result;
    }
protected function parseRouterField($method): array
    {
        $result = [];

        foreach ($this->routerField as $f) {
            $field = 'leevel'.ucfirst($f);

            if (property_exists($method, $field)) {
                $result[$f] = $method->{$field};
            }
        }

        return $result;
    }
解析自定义路由字段.

@param object $method

@return array