[F] Fix felica lookup v2

pull/22/head
Azalea 2024-03-05 22:34:53 -05:00
parent fa4ccf07b8
commit 51f73d77bf
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ class AimeDB(
* Felica Lookup v2: Look up the card in the card repository, return the External ID
*/
fun doFelicaLookupV2(msg: ByteBuf): ByteBuf {
val idm = msg.slice(0x20, 0x28 - 0x20).getLong(0)
val pmm = msg.slice(0x28, 0x30 - 0x28).getLong(0)
val idm = msg.slice(0x30, 0x38 - 0x30).getLong(0)
val pmm = msg.slice(0x38, 0x40 - 0x38).getLong(0)
logger.info("> Felica Lookup v2 (idm $idm, pmm $pmm)")
// Get the decimal represent of the hex value, same from minime