diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index 7471f127..7e093157 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -231,7 +231,7 @@ class Book extends Base { return $r; } - public function limit($aParam) + public function g_limit($aParam) { $iLimit = $aParam["aArg"][1]; @@ -851,6 +851,19 @@ class Book extends Base { //// page 系列 end //// parent 系列 + public function limit($aParam) + { + $iValue = $aParam["aArg"][1] ?? 10; + + $oParentRag = $this->_getParentRag(); + + $oParentRag->limit = $iValue; + + $oParentRag->save(); + + return $this->openRe(); + } + public function parent_detail() { $oParentRag = $this->_getParentRag();