修复分页BUG,原有代码查询到最后一页就一只查询最后一页
$this->nowPage = $this->nowPage>0 ? $this->nowPage : 1; $this->maxPage = ceil($this->total/$this->rows); //$this->nowPage > $this->maxPage and $this->nowPage = $this->maxPage; $this->firstRow = $this->rows * ($this->nowPage - 1);
注释如上代码
新代码现在都托管到github:https://github.com/wangdong007092/thinkphp-model
时间: 2024-10-02 20:54:54