From 55610855f446ea0ee96dc18c2fdf999409c41ae3 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Sat, 1 May 2021 15:48:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20page=20=E7=9A=84=E6=8C=87?= =?UTF-8?q?=E5=90=91=E9=93=BE=E6=8E=A5=E4=B8=AD=E6=B2=A1=E6=9C=89=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20bookId=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Element/BookContent/Page.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Element/BookContent/Page.php b/src/Element/BookContent/Page.php index a1ab0b8..ddb739e 100644 --- a/src/Element/BookContent/Page.php +++ b/src/Element/BookContent/Page.php @@ -72,7 +72,16 @@ class Page { } public function getSummaryHtml (): string { - $str = "
  • getId()==$this->id?"":(PageMeta::$book->getId()." href='/".$this->id."'")) . ">$this->name"; + $str = + "
  • getId()==$this->id ? + "" : + "href='/".PageMeta::$book->getId()."/".$this->id."' " + ) . + ">$this->name"; if (sizeof($this->segues) > 0) { $str .= "