diff --git a/Extend/Library/ORG/Util/Page.class.php b/Extend/Library/ORG/Util/Page.class.php index b65d927..7da2a5c 100644 --- a/Extend/Library/ORG/Util/Page.class.php +++ b/Extend/Library/ORG/Util/Page.class.php @@ -128,7 +128,7 @@ public function show() { // 1 2 3 4 5 $linkPage = ""; for($i=1;$i<=$this->rollPage;$i++){ - $page = ($nowCoolPage-1)*$this->rollPage+$i; + $page = $this->nowPage + $i - ceil($this->rollPage/2); if($page!=$this->nowPage){ if($page<=$this->totalPages){ $linkPage .= "  ".$page." ";