mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 07:09:16 +08:00
to get mute all
This commit is contained in:
parent
13aa04e685
commit
1302951b58
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user