Commit 9f1734a5 authored by clone's avatar clone

1

parent 56101707
......@@ -158,6 +158,7 @@ class SquareSortService
} elseif ($index_min > $cream_num) {
$index_end = $total - ($index_min - $cream_num);
$index_start = $index_end - $page_size;
$index_start = $index_start > 0 ? $index_start : 0;
$list = $this->redis->zRange(self::SORT_KEY . $site_id, $index_start, $index_end, true);
$result = $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