diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index 1a009fe5..50dd579a 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -1696,11 +1696,23 @@ class Book extends Base { //// tag系列 end //// fire系列 + public function fireUn($aParam) + { + $aParam["is_un"] = true; + $aParam["aArg"] = [1, 2, 3]; + + return $this->fire($aParam); + } + public function fire($aParam) { $aNo = $aParam["aOption"] ?? false; $aFireTime = $aParam["aArg"] ?? false; +// if (isset($aParam["is_un"])) { +// $ +// } + if (!$aFireTime) { return "要time"; } @@ -1719,6 +1731,10 @@ class Book extends Base { $sFireTime = $this->_valueFormat($sFireTime); + if (isset($aParam["is_un"])) { + $sFireTime = NULL; + } + // $r = ModelBook::where("path", $this->sPath)->whereIn("no", $aNo)->update(["fire" => $sFireTime]); $r = ModelBook::whereIn("id", $aId)->update(["fire" => $sFireTime]); @@ -1740,8 +1756,6 @@ class Book extends Base { $this->aRagOption["is_shadow_list"] = true; -// $this->_cd("firel"); - return $this->bookToStr($oBookFire); }