diff --git a/client/recall.go b/client/recall.go index 2d5719f7..f9f3639a 100644 --- a/client/recall.go +++ b/client/recall.go @@ -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) diff --git a/message/message.go b/message/message.go index 097a8f26..f9c41e8c 100644 --- a/message/message.go +++ b/message/message.go @@ -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), },