From ec41d2a2e762a8641f26cc720c5b6d2736b204a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 8 Mar 2021 16:27:29 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index affb9bf2..b3b9bfc3 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -435,13 +435,14 @@ class Node extends HttpService return null; } + + $search = 'node_' . $search; if (isset($this->childes[$search])) { return $this->childes[$search]; } $_searchMatch = '/<(\w+)?:(.+)?>/'; foreach ($this->childes as $key => $val) { - $key = 'node_' . $key; if (preg_match($_searchMatch, $key, $match)) { Input()->addGetParam($match[1] ?? '--', $search); return $this->childes[$key];