feat : rank

This commit is contained in:
2025-04-09 09:40:05 +08:00
parent edb295cbe2
commit 8c284937ac
6 changed files with 163 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ class GetLeaderboardService extends BaseService
$v = 4 + 1 - exp(-2 * $normalized);
}
$v = round($v,2);
$v = round($v,1);
}
$this->redis->zAdd($redisKey,$v,$k);