From 9c13c7211dcb9d204207dbe841d7916b8ca736ab Mon Sep 17 00:00:00 2001 From: jwj <86849180@qq.com> Date: Wed, 27 Mar 2024 16:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A4=9A=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=AF=BB=E5=8F=96=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/console/command/RouteList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/think/console/command/RouteList.php b/src/think/console/command/RouteList.php index 546cf4d9ea..ac78b45de0 100644 --- a/src/think/console/command/RouteList.php +++ b/src/think/console/command/RouteList.php @@ -60,7 +60,7 @@ protected function getRouteList(string $dir = null): string $this->app->route->lazy(false); if ($dir) { - $path = $this->app->getRootPath() . 'route' . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR; + $path = $this->app->getAppPath() . $dir . DIRECTORY_SEPARATOR . 'route' . DIRECTORY_SEPARATOR; } else { $path = $this->app->getRootPath() . 'route' . DIRECTORY_SEPARATOR; }