forked from Cookies_Public/AquaDX
[F] mai2 error response
This commit is contained in:
parent
b3fcf8dd5e
commit
32fcc25ea4
@ -278,7 +278,7 @@ class Maimai2ServletController(
|
|||||||
}
|
}
|
||||||
} catch (e: ApiException) {
|
} catch (e: ApiException) {
|
||||||
logger.warn("Mai2 > $api : ${e.code} - ${e.message}")
|
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}"}""")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user