From d0b67c37f61d6edacf023ad47f7bb3062583bec7 Mon Sep 17 00:00:00 2001 From: Keeboy99 <67620144+Keeboy99@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:51:49 +1200 Subject: [PATCH] fix: :ambulance: fix ongeki re:fresh support by @Keeboy99 --- .../aqua/sega/ongeki/OngekiUserApis.kt | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiUserApis.kt b/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiUserApis.kt index e3027851..4c15a896 100644 --- a/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiUserApis.kt +++ b/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiUserApis.kt @@ -112,7 +112,29 @@ fun OngekiController.initUser() { } "GetUserPreview" api@ { - val u = db.data.findByCard_ExtId(uid)() ?: return@api mapOf("userId" to uid, "lastPlayDate" to null) + val u = db.data.findByCard_ExtId(uid)() ?: return@api mapOf( + "userId" to uid, + "isLogin" to false, + "lastLoginDate" to "0000-00-00 00:00:00", + "userName" to "", + "reincarnationNum" to 0, + "level" to 0, + "exp" to 0, + "playerRating" to 0, + "lastGameId" to "", + "lastRomVersion" to "", + "lastDataVersion" to "", + "lastPlayDate" to "", + "nameplateId" to 0, + "trophyId" to 0, + "cardId" to 0, + "dispPlayerLv" to 0, + "dispRating" to 0, + "dispBP" to 0, + "headphone" to 0, + "banStatus" to 0, + "isWarningConfirmed" to true + ) val o = db.option.findSingleByUser(u)() val res = mutableMapOf( @@ -186,4 +208,4 @@ fun OngekiController.initUser() { l to mapOf("rivalUserId" to rivalUserId) } -} \ No newline at end of file +}