From 4ea4ca86f8674dcfb55c5acc0f885902cab972e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 8 Mar 2021 16:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index b3b9bfc3..164810cc 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -394,7 +394,7 @@ class Node extends HttpService */ public function addChild(Node $node, string $field): Node { - $field = 'node_' . $field; + $field = (string)$field; /** @var Node $oLod */ $oLod = $this->childes[$field] ?? null; if (!empty($oLod)) { @@ -435,8 +435,6 @@ class Node extends HttpService return null; } - - $search = 'node_' . $search; if (isset($this->childes[$search])) { return $this->childes[$search]; }