src/Leevel/Router/OpenApiRouter.php
protected function parseToGroups(array &$routers): array
    {
        $groups = [];
        $groupIndex = 0;

        foreach ($routers as $key => &$item) {
            $groups[(int) ($groupIndex / 10)][$key] = $item;

            unset($item['regex']);

            $groupIndex++;
        }

        return $groups;
    }
protected function parseToGroups(array &$routers): array
    {
        $groups = [];
        $groupIndex = 0;

        foreach ($routers as $key => &$item) {
            $groups[(int) ($groupIndex / 10)][$key] = $item;

            unset($item['regex']);

            $groupIndex++;
        }

        return $groups;
    }
将路由进行分组.

@param array $routers

@return array