From d247642103b51ab7a45ae7842b4342030e77c9bc Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Fri, 18 Jul 2025 18:34:55 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Dog.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Services/TG/Hook/Dog.php b/app/Services/TG/Hook/Dog.php index 4ff2bcc..1b2958f 100644 --- a/app/Services/TG/Hook/Dog.php +++ b/app/Services/TG/Hook/Dog.php @@ -211,7 +211,7 @@ class Dog extends Mod\Base { //// 辅助系列 end //// json系列 -// private function +// private function //// json系列end //// me系列 @@ -382,6 +382,10 @@ class Dog extends Mod\Base { $iLimit = ModelOption::_hit("dog_limit"); } + if (!$iLimit) { + throw new \Exception("需要option里的dog_limit"); + } + return $iLimit; } @@ -398,7 +402,7 @@ class Dog extends Mod\Base { } $iLimit = $this->_getLimit(); - + if ($sValue === false ) { $oSelf = $this->oModelSelf; @@ -831,8 +835,10 @@ class Dog extends Mod\Base { return "需要value"; } + $aParam = []; $aParam["sHitField"] = $sHitField; $aParam["aOption"][1] = $sWhereField; + $aParam["aArg"][1] = $sWhereValue; return $this->find($aParam); } @@ -850,8 +856,10 @@ class Dog extends Mod\Base { return "需要value"; } + $aParam = []; $aParam["aOption"][1] = "content"; $aParam["aOption"][2] = $sWhereField; + $aParam["aArg"][1] = $sValue; return $this->hit($aParam); }