[F] AimeDB Felica Lookup v2 rename package parameter (#94)

* [F] AimeDB Felica Lookup v2 rename package parameter

* [F] AimeDB Felica Lookup v2 rename package parameter
pull/95/head
akatki 2024-12-01 11:39:51 +08:00 committed by GitHub
parent 2482881117
commit 8434842c65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ class AimeDB(
*/
fun doFelicaLookupV2(msg: ByteBuf): ByteBuf {
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)")
val dfc = msg.slice(0x38, 0x40 - 0x38).getLong(0)
logger.info("> Felica Lookup v2 (idm $idm, dfc $dfc)")
// Get the decimal represent of the hex value, same from minime
val accessCode = idm.toString().replace("-", "").padStart(20, '0')