[F] Ongeki: Field inconsistencies

pull/134/head
Azalea 2025-03-29 12:50:19 -04:00
parent 348b2e17f0
commit a9c0fe5ff8
2 changed files with 5 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class OngekiController(
val token = TokenChecker.tokenShort()
log.info("$token : $api < ${data.toJson()}")
val noop = """{"returnCode":"1","apiName":"${api.substringBefore("Api").firstCharLower()}"}"""
val noop = """{"returnCode":1,"apiName":"${api.substringBefore("Api").firstCharLower()}"}"""
if (api !in noopEndpoint && !handlers.containsKey(api)) {
log.warn("$token : $api > not found")
return noop

View File

@ -129,7 +129,10 @@ fun OngekiController.initUser() {
"headphone" to (o?.headphone ?: 0),
"lastEmoneyBrand" to 4,
"lastEmoneyCredit" to 10000
"lastEmoneyCredit" to 10000,
"banStatus" to 0,
"isWarningConfirmed" to false,
)
}