Commit 8b904267 authored by clone's avatar clone

1

parent 9c92818e
......@@ -43,7 +43,7 @@ class SquareSortService
$look_num = $this->redis->zScore(self::LOOK_NUM_KEY, $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 >= 3) {
if ($look_num >= 200) {
$m_square = new BSquare();
$m_square->updateStatus(['id'=>$s_id], ['is_cream'=>1]);
$this->redis->zAdd(self::SORT_KEY_CREAM . $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