This commit is contained in:
2021-08-05 11:42:27 +08:00
parent ae246a42d1
commit b0a585ac3e
+1
View File
@@ -422,6 +422,7 @@ class Router extends HttpService implements RouterInterface
$parent = static::$nodes[$method]['/'];
while ($value = array_shift($explode)) {
$node = $parent->findNode($value);
var_dump($node);
if (!$node) {
throw new RequestException('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', 404);
}