改进Query类的paginate方法

This commit is contained in:
thinkphp
2016-10-25 22:54:40 +08:00
parent 535e17b1a0
commit a3f80621b5

View File

@@ -1002,6 +1002,9 @@ class Query
if (!isset($total) && !$simple) {
$options = $this->getOptions();
if (isset($options['order'])) {
unset($this->options['order']);
}
$bind = $this->bind;
$total = $this->count();
$results = $this->options($options)->bind($bind)->page($page, $listRows)->select();