mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
fix: 🚑 fix ongeki re:fresh support by @Keeboy99
This commit is contained in:
parent
f6aa7d1fe3
commit
d0b67c37f6
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user