This commit is contained in:
2021-09-10 10:16:10 +08:00
parent 073402ff9a
commit 8c0050c036
+2 -1
View File
@@ -506,7 +506,8 @@ class Router extends HttpService implements RouterInterface
$node = $this->tree_search(['*']); $node = $this->tree_search(['*']);
} }
if (!isset($node)) { if (!isset($node)) {
$node = $this->tree_search($uri->getExplode()); $_explode = array_filter(explode('/', $uri->getPath()));
$node = $this->tree_search($_explode);
} }
return $node; return $node;
} }