mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-14 00:17:27 +08:00
Revert "[aimedb] Pass existing aimeId for duplicated register request"
This reverts commit 0c65740607.
This commit is contained in:
@@ -53,15 +53,9 @@ public class RegisterHandler implements BaseHandler {
|
|||||||
resultMap.put("status", 1);
|
resultMap.put("status", 1);
|
||||||
resultMap.put("aimeId", card.getExtId().longValue());
|
resultMap.put("aimeId", card.getExtId().longValue());
|
||||||
} else {
|
} else {
|
||||||
/* Ongeki workaround: if the card is already registered, it will just return existing aimeId associated with luid.
|
|
||||||
I have strong feeling that we should investigate about register code (13) instead of this hack,
|
|
||||||
but it seems enough for mitigate "ongeki bright" error popup during login process. */
|
|
||||||
logger.warn("Duplicated Aime Card Register detected, access code: {}", requestMap.get("luid"));
|
logger.warn("Duplicated Aime Card Register detected, access code: {}", requestMap.get("luid"));
|
||||||
|
resultMap.put("status", 0);
|
||||||
Card card = cardService.getCardByAccessCode((String) requestMap.get("luid")).get();
|
resultMap.put("aimeId", 0L);
|
||||||
|
|
||||||
resultMap.put("status", 1);
|
|
||||||
resultMap.put("aimeId", card.getExtId().longValue());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Response: " + logMapper.write(resultMap));
|
logger.info("Response: " + logMapper.write(resultMap));
|
||||||
|
|||||||
Reference in New Issue
Block a user