diff --git a/app/Services/TG/Hook/Mod/Book.php b/app/Services/TG/Hook/Mod/Book.php index 71a2c144..c6d8b0b8 100644 --- a/app/Services/TG/Hook/Mod/Book.php +++ b/app/Services/TG/Hook/Mod/Book.php @@ -43,10 +43,9 @@ class Book extends Base { $this->aRagOption = json_decode($this->oRag->option, true); } else { $this->aRagOption = []; + $this->aRagOption["fire_show"] = false; } - $this->aRagOption["fire_show"] = false; - } private function _valid($aValid) @@ -1689,7 +1688,6 @@ class Book extends Base { $str .= "\n no:".$row->no; $str .= "\n id:".$row->id; $str .= "\n path:".$row->path; - $str .= "\n fire:".$row->fire; if ($row->fire) { $str .= "\n fire:".$row->fire; @@ -2102,7 +2100,7 @@ class Book extends Base { $sStr .= ":".$this->_RankMap($oRag->rank); } // tomd($this->oRag->option, 1); - if (@$this->aRagOption["fire_show"] == true && $oRag->fire) { + if ($this->aRagOption["fire_show"] == true && $oRag->fire) { $iDayLine = ceil((strtotime($oRag->fire) - time()) / 86400);