改名
This commit is contained in:
@@ -422,6 +422,7 @@ class Router extends HttpService implements RouterInterface
|
|||||||
$parent = static::$nodes[$method]['/'];
|
$parent = static::$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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user