Commit 17e4c140 authored by zw's avatar zw

1

parent 48dc2963
......@@ -138,7 +138,7 @@ class SquareSortService
$index_min = ($page_no - 1) * $page_size;
$index_max = $page_no * $page_size;
$result = [];
if ($total <= $page_size) {
if ($total <= $page_size && $page_no == 1) {
$cream_list = $this->redis->zRevRange(self::SORT_KEY_CREAM . $site_id, 0, -1, true);
$list = $this->redis->zRevRange(self::SORT_KEY . $site_id, 0, -1, true);
$result = $cream_list + $list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment