Fix Sub8A (#742)

* Fix Sub8A

* Fix error
This commit is contained in:
sandtechnology 2020-12-20 20:58:53 +08:00 committed by GitHub
parent 7796fbf2d2
commit a097e494ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,20 +412,25 @@ internal inline fun lambda528(crossinline block: MsgType0x210.(QQAndroidBot, Msg
internal object Transformers528 : Map<Long, Lambda528> by mapOf(
0x8AL to lambda528 { bot ->
@Serializable
class Wording(
@ProtoNumber(1) val itemID: Int = 0,
@ProtoNumber(2) val itemName: String = ""
) : ProtoBuf
@Serializable
class Sub8AMsgInfo(
@ProtoNumber(1) val fromUin: Long,
@ProtoNumber(2) val botUin: Long,
@ProtoNumber(3) val srcId: Int,
@ProtoNumber(4) val srcInternalId: Int,
@ProtoNumber(5) val time: Int,
@ProtoNumber(6) val random: Int, // 同srcInternalId
@ProtoNumber(4) val srcInternalId: Long,
@ProtoNumber(5) val time: Long,
@ProtoNumber(6) val random: Int,
@ProtoNumber(7) val pkgNum: Int, // 1
@ProtoNumber(8) val pkgIndex: Int, // 0
@ProtoNumber(9) val devSeq: Int, // 0
@ProtoNumber(10) val unknown1: Int = 0, // ? 补 id
@ProtoNumber(11) val unknown2: Int = 0, // ?
@ProtoNumber(12) val flag: Int // 1
@ProtoNumber(12) val flag: Int, // 1
@ProtoNumber(13) val wording: Wording
) : ProtoBuf
@Serializable
@ -442,8 +447,8 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf(
MessageRecallEvent.FriendRecall(
bot = bot,
messageIds = intArrayOf(it.srcId),
messageInternalIds = intArrayOf(it.srcInternalId),
messageTime = it.time,
messageInternalIds = intArrayOf(it.srcInternalId.toInt()),
messageTime = it.time.toInt(),
operatorId = it.fromUin
)
}