mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-12-14 11:56:15 +08:00
[F] Mai2 unable to register new user
This commit is contained in:
@@ -121,7 +121,7 @@ fun Maimai2ServletController.initApis() {
|
||||
}
|
||||
|
||||
"UserLogin" {
|
||||
val d = db.userData.findByCardExtId(uid)() ?: (404 - "User not found")
|
||||
val d = db.userData.findByCardExtId(uid)()
|
||||
|
||||
val res = mutableMapOf(
|
||||
"returnCode" to 1, "loginCount" to 1,
|
||||
@@ -130,7 +130,7 @@ fun Maimai2ServletController.initApis() {
|
||||
"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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user