解决thinkPHP5 paginate()分页不带参数问题

thinkPHP5
paginate()
Query.php
use think\Request;
paginate()方法加这个段代码
$config['query'] = isset($config['query']) ? $config['query'] : Request::instance()->param()
;

你可能感兴趣的:(ThinkPHP)