From f43f55ed8404d325515c9d3643310810861fc3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 13 Oct 2020 12:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 9c2bd51a..04b3b1e2 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -71,7 +71,7 @@ class Router extends Application implements RouterInterface if (!isset($this->nodes[$method])) { $this->nodes[$method] = []; } - if (Config::get('router') == ROUTER_TREE) { + if (Config::get('router', false, ROUTER_HASH) == ROUTER_TREE) { return $this->tree($path, $handler, $method); } else { return $this->hash($path, $handler, $method);