From 9ec17e89beb8068121f6b73c7b435b41b500b898 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 24 Jun 2025 19:07:51 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Mod/Book.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index fd484cfa..9c4afbb0 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -37,16 +37,27 @@ class Book extends Base { $this->aOption[$v["key"]] = $v["value"]; } + $this->_optionIn(); + + } + + private function _optionIn() + { $this->oRag = $this->_getParentRag(); if ($this->oRag->option) { $this->aRagOption = json_decode($this->oRag->option, true); } else { $this->aRagOption = []; -// $this->aRagOption["fire_show"] = false; -// $this->aRagOption["todo_show_type"] = 1; } + } + + private function _cd($sPath = "/") + { + ModelBookHook::_cd($sPath); + $this->sPath = $sPath; + $this->optionIn(); } private function _valid($aValid) @@ -73,12 +84,6 @@ class Book extends Base { return $this->bookToStr($oBook); } - private function _cd($sPath = "/") - { - ModelBookHook::_cd($sPath); - $this->sPath = $sPath; - } - public function main() { $this->_cd("/");