Commit 5e3dac54 authored by clone's avatar clone

1

parent 2ba383e8
......@@ -38,7 +38,7 @@ class SquareSortService
$time_ = date("Y-m-d H:i:s", time());
$this->redis->zRem(self::SORT_KEY, $s_id);//删除不管key存不存在
//todo 新增key
$this->redis->zAdd(self::SORT_KEY, $s_id, $time_);
$this->redis->zAdd(self::SORT_KEY, $time_, $s_id);
return true;
}
......@@ -58,7 +58,7 @@ class SquareSortService
$this->redis->zIncrBy(self::LOOK_NUM_KEY, 1, $s_id);
} else {
//todo 新增key
$this->redis->zAdd(self::LOOK_NUM_KEY, $s_id, 1);
$this->redis->zAdd(self::LOOK_NUM_KEY, 1, $s_id);
}
return true;
......
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