lib/Pager.php
public function getPageUrl($page, $rows = null) 
    {        
        $rows || $rows = $this->rows;
        $url = $this->uri;
                
        if ($this->allowCustomRows) {
            $url .= "{$this->argSeparator}{$this->rowsVar}{$this->valSeparator}{$rows}";
        }
        
        if ($page > 1) {
            $url .= "{$this->argSeparator}{$this->pageVar}{$this->valSeparator}{$page}";
        }
        
        $url = str_replace("?&", '?', $url);
        
        $url .= $this->uriQuery;
        
        return $url;
    }
public function getPageUrl($page, $rows = null) 
    {        
        $rows || $rows = $this->rows;
        $url = $this->uri;
                
        if ($this->allowCustomRows) {
            $url .= "{$this->argSeparator}{$this->rowsVar}{$this->valSeparator}{$rows}";
        }
        
        if ($page > 1) {
            $url .= "{$this->argSeparator}{$this->pageVar}{$this->valSeparator}{$page}";
        }
        
        $url = str_replace("?&", '?', $url);
        
        $url .= $this->uriQuery;
        
        return $url;
    }
根据参数生成URL
@param int $page 页码
@param int $rows = null 为null时使用$this->rows的值
@return string