[+] Game music popularity for chusan

This commit is contained in:
Azalea
2025-01-12 05:54:15 -05:00
parent ef8cb7e0ee
commit 208fb8cf73
2 changed files with 13 additions and 2 deletions

View File

@@ -16,8 +16,17 @@ fun ChusanController.chusanInit() {
cmApiInit()
upsertApiInit()
// Game music popularity
"GetGameRanking" {
val type = parsing { data["type"]!!.int }
// TODO: figure out what type does
mapOf("type" to type, "length" to 0, "gameRankingList" to (pop.ranking["chusan"] ?: listOf()).map {
mapOf("id" to it.musicId, "point" to it.weight)
})
}
// Stub handlers
"GetGameRanking" { """{"type":"${data["type"]}","length":"0","gameRankingList":[]}""" }
"GetGameIdlist" { """{"type":"${data["type"]}","length":"0","gameIdlistList":[]}""" }
"GetTeamCourseSetting" { """{"userId":"${data["userId"]}","length":"0","nextIndex":"0","teamCourseSettingList":[]}""" }