改名
This commit is contained in:
@@ -20,7 +20,6 @@ use JetBrains\PhpStorm\Pure;
|
|||||||
use Snowflake\Core\Json;
|
use Snowflake\Core\Json;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
use function Input;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Node
|
* Class Node
|
||||||
@@ -448,15 +447,11 @@ class Node extends HttpService
|
|||||||
if (empty($this->childes)) {
|
if (empty($this->childes)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->childes[$search])) {
|
if (isset($this->childes[$search])) {
|
||||||
return $this->childes[$search];
|
return $this->childes[$search];
|
||||||
}
|
}
|
||||||
|
|
||||||
$_searchMatch = '/<(\w+)?:(.+)?>/';
|
|
||||||
foreach ($this->childes as $key => $val) {
|
foreach ($this->childes as $key => $val) {
|
||||||
if (preg_match($_searchMatch, (string)$key, $match)) {
|
if ($search == $key) {
|
||||||
Input()->addGetParam($match[1] ?? '--', $search);
|
|
||||||
return $this->childes[$key];
|
return $this->childes[$key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user