From e2c7ba29e3901f3163106fe7abfcf94664b34f8d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 21 Aug 2017 11:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bchunk=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84order=E5=8F=82=E6=95=B0=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 4cea36ea..64f449c9 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2601,7 +2601,7 @@ class Query $resultSet = $this->options($options) ->limit($count) ->bind($bind) - ->where($column, 'asc' == $order ? '>' : '<', $lastId) + ->where($column, 'asc' == strtolower($order) ? '>' : '<', $lastId) ->order($column, $order) ->select(); if ($resultSet instanceof Collection) {