fix: GagInfoDisclosure show opUin

This commit is contained in:
hd
2024-07-18 12:50:28 +08:00
parent 0746fc7223
commit e2967c9a5b

View File

@@ -131,7 +131,8 @@ object GagInfoDisclosure : CommonSwitchFunctionHook(
if (vMsg[4].toInt() == 12) { if (vMsg[4].toInt() == 12) {
val selfUin = AppRuntimeHelper.getAccount() val selfUin = AppRuntimeHelper.getAccount()
val troopUin = getLongData(vMsg, 0).toString() val troopUin = getLongData(vMsg, 0).toString()
val opUin = getLongData(vMsg, 6).toString() val opUinTmp = getLongData(vMsg, 6)
val opUin = (opUinTmp.takeIf { it > 0 } ?: (opUinTmp and 0xFFFFFFFFL)).toString()
val victimUinTmp = getLongData(vMsg, 16) val victimUinTmp = getLongData(vMsg, 16)
val victimUin = (victimUinTmp.takeIf { it > 0 } ?: (victimUinTmp and 0xFFFFFFFFL)).toString() val victimUin = (victimUinTmp.takeIf { it > 0 } ?: (victimUinTmp and 0xFFFFFFFFL)).toString()
val victimTime = getLongData(vMsg, 20) val victimTime = getLongData(vMsg, 20)