1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +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,13 +76,19 @@ func (c *QQClient) buildPrivateRecallPacket(uin, ts int64, msgSeq, random int32)
FromUin: &c.Uin,
ToUin: &uin,
MsgTime: &ts,
MsgUid: proto.Int64(0x01000000000000000 | (int64(random) & 0xFFFFFFFF)),
MsgUid: proto.Int64(0x0100_0000_0000_0000 | (int64(random) & 0xFFFFFFFF)),
MsgSeq: &msgSeq,
MsgRandom: &random,
RoutingHead: &msg.RoutingHead{
C2C: &msg.C2C{
ToUin: &uin,
},
},
},
},
Reserved: []byte{0x08, 0x00},
SubCmd: proto.Int32(1),
LongMessageFlag: proto.Int32(0),
Reserved: []byte{0x08, 0x00},
SubCmd: proto.Int32(1),
},
}}
payload, _ := proto.Marshal(req)

View File

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