This commit is contained in:
2021-08-05 11:45:14 +08:00
parent b0a585ac3e
commit deae5457aa
2 changed files with 19 additions and 30 deletions
+1 -4
View File
@@ -281,12 +281,9 @@ class Node extends HttpService
if (empty($this->childes)) {
return null;
}
if (isset($this->childes[$search])) {
return $this->childes[$search];
}
foreach ($this->childes as $val) {
if ($search == $val->path) {
return $this->childes[$val->path];
return $val;
}
}
return null;