From 43582f05282a750183b48129b61b952785d1b33e Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 17 Jan 2025 18:48:47 -0500 Subject: [PATCH] [F] Fix kaleidx parsing --- .../java/icu/samnyan/aqua/sega/maimai2/Maimai2Apis.kt | 4 +++- .../aqua/sega/maimai2/model/userdata/UserEntities.kt | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2Apis.kt b/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2Apis.kt index 2fa37782..e1b91b6a 100644 --- a/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2Apis.kt +++ b/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2Apis.kt @@ -188,7 +188,9 @@ fun Maimai2ServletController.initApis() { "GetGameTournamentInfo" static { mapOf("length" to 0, "gameTournamentInfoList" to empty) } // Kaleidoscope, added on 1.50 - "GetGameKaleidxScope" static { mapOf("gameKaleidxScopeList" to empty) } + "GetGameKaleidxScope" static { mapOf("gameKaleidxScopeList" to ls( + mapOf("gateId" to 1, "phaseId" to 1), + )) } "GetUserKaleidxScope".unpaged { db.userKaleidx.findByUser_Card_ExtId(uid) } // Added on 1.50 "GetUserNewItemList" { mapOf("userId" to uid, "userItemList" to empty) } diff --git a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserEntities.kt b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserEntities.kt index 34fe0997..ca49b63c 100644 --- a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserEntities.kt +++ b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserEntities.kt @@ -590,10 +590,10 @@ class Mai2UserKaleidx : Mai2UserEntity() { var totalDeluxscore = 0 var bestAchievement = 0 var bestDeluxscore = 0 - var bestAchievementDate: LocalDateTime = LocalDateTime.MIN - var bestDeluxscoreDate: LocalDateTime = LocalDateTime.MIN + var bestAchievementDate: LocalDateTime? = null + var bestDeluxscoreDate: LocalDateTime? = null var playCount = 0 - var clearDate: LocalDateTime = LocalDateTime.MIN - var lastPlayDate: LocalDateTime = LocalDateTime.MIN + var clearDate: LocalDateTime? = null + var lastPlayDate: LocalDateTime? = null var isInfoWatched = false -} \ No newline at end of file +}