pull/110/head
Clansty 2025-01-18 06:38:09 +08:00
parent caba213e9d
commit 2a23f643af
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ class GetGameRankingHandler(
"gameRankingList" to when(request["type"]) { "gameRankingList" to when(request["type"]) {
1 -> { 1 -> {
val opts = TokenChecker.getCurrentSession()?.user?.gameOptions val opts = TokenChecker.getCurrentSession()?.user?.gameOptions
if (opts?.enableMusicRank != true) // If is null or true, return the ranking list
if (opts?.enableMusicRank == false)
emptyList() emptyList()
else else
musicRankingCache.map { mapOf("id" to it.musicId, "point" to it.weight, "userName" to "") } musicRankingCache.map { mapOf("id" to it.musicId, "point" to it.weight, "userName" to "") }