From 8163583ce1769fdcd38250f2a2fe162e1ed9ea8d Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 17 Jun 2025 12:14:25 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Mod/Book.php | 38 ++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index 3c395e88..5a2d716d 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -563,6 +563,29 @@ class Book extends Base { return $this->_rag(false, $sValue, "done"); } + public function think($aParam) + { + $aNo = $aParam["aArg"] ?? false; + $v = "think"; + + $this->_kv("rank", $v, $aNo); + + $this->noRe(); + + return $this->openRe(); + } + + public function toThink($aParam) + { + $sValue = $aParam["aArg"][1] ?? false; + + if (!$sValue) { + return "需要value"; + } + + return $this->_rag(false, $sValue, "think"); + } + public function done($aParam) { $aNo = $aParam["aArg"] ?? false; @@ -1946,7 +1969,18 @@ class Book extends Base { $this->mRst[] = ["反", $r]; - $this->noRe(); + return $this->openRe(); + } + + public function memoun($aParam) + { + $aNo = $aParam["aArg"]; + + $aId = $this->_noToId($aNo); + + $r = ModelBook::whereIn("id", $aId)->update(["memo" => NULL]); + + $this->mRst = ["反", $r]; return $this->openRe(); } @@ -2006,6 +2040,8 @@ class Book extends Base { "glod" => "🟡", "wait" => "⚪️", "silver" => "⚪️", + "think" => "🔵", + "blue" => "🔵", "track" => "🟤", "iron" => "🟤", "block" => "⚫️",