This commit is contained in:
2021-08-05 11:19:12 +08:00
parent a79997e6cc
commit 1985bf4e38
3 changed files with 13 additions and 21 deletions
+3 -3
View File
@@ -285,9 +285,9 @@ class Node extends HttpService
if (isset($this->childes[$search])) {
return $this->childes[$search];
}
foreach ($this->childes as $key => $val) {
if ($search == $key) {
return $this->childes[$key];
foreach ($this->childes as $val) {
if ($search == $val->path) {
return $this->childes[$val->path];
}
}
return null;