diff --git a/app/Http/Controllers/SakaiController.php b/app/Http/Controllers/SakaiController.php index 21a74fb7..82219fdc 100755 --- a/app/Http/Controllers/SakaiController.php +++ b/app/Http/Controllers/SakaiController.php @@ -335,10 +335,11 @@ class SakaiController $s = "main"; $s = "openRe"; + $s = "memo__2 xxxx"; // $s = "toWait 333333"; - $s = "no 2"; - - $s = "case a"; +// $s = "no 2"; +// +// $s = "case a"; // $s = "openRe"; diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index fa210c3d..3c395e88 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -1932,6 +1932,26 @@ class Book extends Base { } //// like 系列 end + //// memo 系列 + public function memo($aParam) + { + $aNo = $aParam["aOption"]; + $aValue = $aParam["aArg"]; + + $sValue = implode(" ", $aValue); + + $aId = $this->_noToId($aNo); + + $r = ModelBook::whereIn("id", $aId)->update(["memo" => $sValue]); + + $this->mRst[] = ["反", $r]; + + $this->noRe(); + + return $this->openRe(); + } + //// memo 系列 end + //// rank系列 // book#rank__1__3 2 // book#rank 2 @@ -2272,7 +2292,7 @@ class Book extends Base { if ($this->_RankMap($oRag->rank)) { $sStr .= ":".$this->_RankMap($oRag->rank); } -// tomd($this->oRag->option, 1); + if ((isset($this->aRagOption["fire_show"]) && $this->aRagOption["fire_show"] == true) && $oRag->fire) { $iDayLine = ceil((strtotime($oRag->fire) - time()) / 86400); @@ -2292,6 +2312,9 @@ class Book extends Base { $sStr .= ":".$oRag->rag; + if ($oRag->memo) { + $sStr .= " | ".$oRag->memo; + } if ($iSubCount = $this->_SubCount($oRag->path.$oRag->id."/")) { $sStr .= " *".$iSubCount;