改名
This commit is contained in:
@@ -132,11 +132,13 @@ class Router extends HttpService implements RouterInterface
|
|||||||
if (is_null($parent)) {
|
if (is_null($parent)) {
|
||||||
$parent = $this->nodes[$start] = $this->NodeInstance($start, 0, $method);
|
$parent = $this->nodes[$start] = $this->NodeInstance($start, 0, $method);
|
||||||
}
|
}
|
||||||
if (empty($explode)) {
|
if (!empty($explode)) {
|
||||||
return $parent->setHandler($handler, $method, $path);
|
$parent = $this->bindNode($parent, $explode, $method);
|
||||||
}
|
}
|
||||||
return $this->bindNode($parent, $explode, $method)
|
if (!in_array($method, $parent->method)) {
|
||||||
->setHandler($handler, $method, $path);
|
$parent->method[] = $method;
|
||||||
|
}
|
||||||
|
return $parent->setHandler($handler, $method, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user