no message

This commit is contained in:
hellcat 2025-07-08 12:05:50 +08:00
parent 8a839687cc
commit 40edfc1d7c

View File

@ -56,7 +56,15 @@ class Node extends Base
}
public function Like($aParam)
public function Find($aParam)
{
// $iId = $aParam["aArg"][1] ?? false;
$aParam["aOption"][1] = $aParam["aOption"][1] ? $aParam["aOption"][1] : "id";
return $this->Like($aParam, "find");
}
public function Like($aParam, $sMod2 = false)
{
// @list($sCmd, $sLike) = explode(" ", $sText);
@ -86,8 +94,12 @@ class Node extends Base
}
$sMsg = '?';
$oNodeList = ModelNode::where($sField, 'like', '%' . $sLike . '%');
if ($sMod2 == "find") {
$oNodeList = ModelNode::where($sField, $sLike);
} else {
$oNodeList = ModelNode::where($sField, 'like', '%' . $sLike . '%');
}
if ($sMod == 'type1') {
$oNodeList->where('type', 1);