mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
26 lines
526 B
PHP
26 lines
526 B
PHP
<?php
|
|
|
|
namespace app\common;
|
|
|
|
use think\paginator\driver\Bootstrap as DriverBootstrap;
|
|
|
|
class Bootstrap extends DriverBootstrap
|
|
{
|
|
|
|
/**
|
|
* 获取页码对应的链接
|
|
*
|
|
* @access protected
|
|
* @param int $page
|
|
* @return string
|
|
*/
|
|
protected function url(int $page): string
|
|
{
|
|
$parameters = ['page' => $page];
|
|
if (count($this->options['query']) > 0) {
|
|
$parameters = array_merge($this->options['query'], ['page' => $page]);
|
|
}
|
|
return (string)url($this->options['url'], $parameters);
|
|
}
|
|
}
|