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