From 1321df5a62633fbd7f8b23ec187a119884aa930c Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Fri, 18 Jul 2025 18:35:07 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Dog.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Services/TG/Hook/Dog.php b/app/Services/TG/Hook/Dog.php index e5669879..1b2958fe 100644 --- a/app/Services/TG/Hook/Dog.php +++ b/app/Services/TG/Hook/Dog.php @@ -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); }