src/Leevel/Router/OpenApiRouter.php
protected function parseRouterDomain(array $router): array
    {
        $router['domain'] = $this->normalizeDomain($router['domain'] ?? '', $this->domain ?: '');

        if ($router['domain'] && false !== strpos($router['domain'], '{')) {
            list($router['domain_regex'], $router['domain_var']) =
                $this->ruleRegex($router['domain'], $router, true);
        }

        if (!$router['domain']) {
            unset($router['domain']);
        }

        return $router;
    }
protected function parseRouterDomain(array $router): array
    {
        $router['domain'] = $this->normalizeDomain($router['domain'] ?? '', $this->domain ?: '');

        if ($router['domain'] && false !== strpos($router['domain'], '{')) {
            list($router['domain_regex'], $router['domain_var']) =
                $this->ruleRegex($router['domain'], $router, true);
        }

        if (!$router['domain']) {
            unset($router['domain']);
        }

        return $router;
    }
解析域名.

@param array $router

@return array