Commit 0944ec41 authored by zw's avatar zw

1

parent 82892cdb
......@@ -42,7 +42,7 @@ class SquareSortService
$look_num = $this->redis->zScore(self::LOOK_NUM_KEY . $site_id, $s_id);
$this->redis->zRem(self::SORT_KEY . $site_id, $s_id);
$this->redis->zRem(self::SORT_KEY_CREAM . $site_id, $s_id);
if ($look_num > 500) {
if ($look_num > 3) {
$this->redis->zAdd(self::SORT_KEY_CREAM . $site_id, time(), $s_id);
} else {
$this->redis->zAdd(self::SORT_KEY . $site_id, time(), $s_id);
......
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