改名
This commit is contained in:
@@ -394,6 +394,7 @@ class Node extends HttpService
|
||||
*/
|
||||
public function addChild(Node $node, string $field): Node
|
||||
{
|
||||
$field = 'node_' . $field;
|
||||
/** @var Node $oLod */
|
||||
$oLod = $this->childes[$field] ?? null;
|
||||
if (!empty($oLod)) {
|
||||
@@ -440,6 +441,7 @@ class Node extends HttpService
|
||||
|
||||
$_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];
|
||||
|
||||
Reference in New Issue
Block a user