getRoutes(); if ($domain) { $router->domain($domain, function () use ($router, $routes) { foreach ($routes as $route) { include $route; } }); } else { $router->group(function () use ($router, $routes) { foreach ($routes as $route) { include $route; } }); } } /** * * @time 2019年12月15日 * @return array */ protected function getRoutes(): array { $routes = CatchAdmin::getRoutes(); array_push($routes, CatchAdmin::directory() . 'login' . DIRECTORY_SEPARATOR . 'route.php'); return $routes; } }