[F] mai2 error response

pull/29/head
Azalea 2024-03-27 23:07:27 -04:00
parent b3fcf8dd5e
commit 32fcc25ea4
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class Maimai2ServletController(
}
} catch (e: ApiException) {
logger.warn("Mai2 > $api : ${e.code} - ${e.message}")
return ResponseEntity.status(e.code).body("""{"returnCode":${e.code},"apiName":"com.sega.maimai2servlet.api.$api","message":"${e.message}"}""")
return ResponseEntity.status(e.code).body("""{"returnCode":0,"apiName":"com.sega.maimai2servlet.api.$api","message":"${e.message?.replace("\"", "\\\"")} - ${e.code}"}""")
}
}
}