to get mute all

This commit is contained in:
jiahua.liu 2020-02-07 21:53:36 +08:00
parent 13aa04e685
commit 1302951b58
3 changed files with 5 additions and 4 deletions

View File

@ -62,9 +62,9 @@ class OnlinePushPack {
@SerialId(3) val svrip: Int? = 0, @SerialId(3) val svrip: Int? = 0,
@SerialId(4) val vSyncCookie: ByteArray? = null, @SerialId(4) val vSyncCookie: ByteArray? = null,
@SerialId(5) val vUinPairMsg: List<UinPairMsg>? = null, @SerialId(5) val vUinPairMsg: List<UinPairMsg>? = null,
@SerialId(6) val mPreviews: Map<String, ByteArray>? = null, @SerialId(6) val mPreviews: Map<String, ByteArray>? = null
@SerialId(7) val wUserActive: Int? = null, // @SerialId(7) val wUserActive: Int? = null,
@SerialId(12) val wGeneralFlag: Int? = null //@SerialId(12) val wGeneralFlag: Int? = null
) : JceStruct ) : JceStruct
@Serializable @Serializable

View File

@ -131,6 +131,7 @@ internal object KnownPacketFactories {
object IncomingFactories : List<IncomingPacketFactory<*>> by mutableListOf( object IncomingFactories : List<IncomingPacketFactory<*>> by mutableListOf(
OnlinePush.PbPushGroupMsg, OnlinePush.PbPushGroupMsg,
OnlinePush.ReqPush,
MessageSvc.PushNotify, MessageSvc.PushNotify,
ConfigPushSvc.PushReq ConfigPushSvc.PushReq

View File

@ -80,10 +80,10 @@ internal class OnlinePush {
@UseExperimental(ExperimentalStdlibApi::class) @UseExperimental(ExperimentalStdlibApi::class)
override suspend fun ByteReadPacket.decode(bot: QQAndroidBot, sequenceId: Int): Packet { override suspend fun ByteReadPacket.decode(bot: QQAndroidBot, sequenceId: Int): Packet {
val reqPushMsg = decodeUniPacket(OnlinePushPack.SvcReqPushMsg.serializer(), "req") val reqPushMsg = decodeUniPacket(OnlinePushPack.SvcReqPushMsg.serializer(), "req")
println(reqPushMsg.contentToString())
reqPushMsg.vMsgInfos.forEach { msgInfo: MsgInfo -> reqPushMsg.vMsgInfos.forEach { msgInfo: MsgInfo ->
} }
println(reqPushMsg.contentToString())
return NoPakcet return NoPakcet
} }