改名
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user