[F] Mai2 unable to register new user

This commit is contained in:
Clansty
2025-05-03 16:06:27 +08:00
parent 98f128ae07
commit a3b3b3dd93

View File

@@ -121,7 +121,7 @@ fun Maimai2ServletController.initApis() {
} }
"UserLogin" { "UserLogin" {
val d = db.userData.findByCardExtId(uid)() ?: (404 - "User not found") val d = db.userData.findByCardExtId(uid)()
val res = mutableMapOf( val res = mutableMapOf(
"returnCode" to 1, "loginCount" to 1, "returnCode" to 1, "loginCount" to 1,
@@ -130,7 +130,7 @@ fun Maimai2ServletController.initApis() {
"Bearer" to "meow", "bearer" to "meow" "Bearer" to "meow", "bearer" to "meow"
) )
if (d.card?.status == CardStatus.MIGRATED_TO_MINATO) { if (d?.card?.status == CardStatus.MIGRATED_TO_MINATO) {
res["returnCode"] = 0 res["returnCode"] = 0
} }