From 8c0050c03694c566f444cc43dc3c9aafd13e22dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 10 Sep 2021 10:16:10 +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 --- http-helper/Route/Router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http-helper/Route/Router.php b/http-helper/Route/Router.php index c9003f06..1ce35e3f 100644 --- a/http-helper/Route/Router.php +++ b/http-helper/Route/Router.php @@ -506,7 +506,8 @@ class Router extends HttpService implements RouterInterface $node = $this->tree_search(['*']); } if (!isset($node)) { - $node = $this->tree_search($uri->getExplode()); + $_explode = array_filter(explode('/', $uri->getPath())); + $node = $this->tree_search($_explode); } return $node; }