1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix: private message uid again

昵昵害人(bushi
This commit is contained in:
wdvxdr 2021-05-31 18:31:23 +08:00
parent 8f4a2f6c3a
commit a835d4e5c3
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6
2 changed files with 10 additions and 4 deletions

View File

@ -76,11 +76,17 @@ func (c *QQClient) buildPrivateRecallPacket(uin, ts int64, msgSeq, random int32)
FromUin: &c.Uin, FromUin: &c.Uin,
ToUin: &uin, ToUin: &uin,
MsgTime: &ts, MsgTime: &ts,
MsgUid: proto.Int64(0x01000000000000000 | (int64(random) & 0xFFFFFFFF)), MsgUid: proto.Int64(0x0100_0000_0000_0000 | (int64(random) & 0xFFFFFFFF)),
MsgSeq: &msgSeq, MsgSeq: &msgSeq,
MsgRandom: &random, MsgRandom: &random,
RoutingHead: &msg.RoutingHead{
C2C: &msg.C2C{
ToUin: &uin,
}, },
}, },
},
},
LongMessageFlag: proto.Int32(0),
Reserved: []byte{0x08, 0x00}, Reserved: []byte{0x08, 0x00},
SubCmd: proto.Int32(1), SubCmd: proto.Int32(1),
}, },

View File

@ -596,7 +596,7 @@ func (forMsg *ForwardMessage) packForwardMsg(seq int32, random int32, groupCode
FromUin: &node.SenderId, FromUin: &node.SenderId,
MsgSeq: &seq, MsgSeq: &seq,
MsgTime: &node.Time, MsgTime: &node.Time,
MsgUid: proto.Int64(0x01000000000000000 | (int64(random) & 0xFFFFFFFF)), MsgUid: proto.Int64(0x0100_0000_0000_0000 | (int64(random) & 0xFFFFFFFF)),
MutiltransHead: &msg.MutilTransHead{ MutiltransHead: &msg.MutilTransHead{
MsgId: proto.Int32(1), MsgId: proto.Int32(1),
}, },