改名
This commit is contained in:
@@ -138,7 +138,7 @@ class Router extends HttpService implements RouterInterface
|
|||||||
|
|
||||||
$parent = $this->nodes[$method][$first] ?? null;
|
$parent = $this->nodes[$method][$first] ?? null;
|
||||||
if (empty($parent)) {
|
if (empty($parent)) {
|
||||||
$this->nodes[$method][$first] = $this->NodeInstance('/', 0, $method);
|
$this->nodes[$method][$first] = $parent = $this->NodeInstance('/', 0, $method);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($first !== '/') {
|
if ($first !== '/') {
|
||||||
|
|||||||
Reference in New Issue
Block a user