diff --git a/client/message.go b/client/message.go index a6dabbae..94dea6b9 100644 --- a/client/message.go +++ b/client/message.go @@ -17,9 +17,9 @@ func (c *QQClient) SendRawMessage(route *message.RoutingHead, body *message.Mess SubType: proto.Some(uint32(0)), DivSeq: proto.Some(uint32(0)), }, - Body: body, - Seq: proto.Some(c.getSequence()), - Rand: proto.Some(random), + Body: body, + ClientSequence: proto.Some(c.getSequence()), + Random: proto.Some(random), } // grp_id not null if (route.Grp != nil && route.Grp.GroupCode.IsSome()) || (route.GrpTmp != nil && route.GrpTmp.GroupUin.IsSome()) { diff --git a/client/packets/pb/message/message.pb.go b/client/packets/pb/message/message.pb.go index 17a3fe16..8e47346e 100644 --- a/client/packets/pb/message/message.pb.go +++ b/client/packets/pb/message/message.pb.go @@ -50,12 +50,12 @@ type GroupRecallMsgField4 struct { } type Message struct { - RoutingHead *RoutingHead `protobuf:"bytes,1,opt"` - ContentHead *ContentHead `protobuf:"bytes,2,opt"` - Body *MessageBody `protobuf:"bytes,3,opt"` - Seq proto.Option[uint32] `protobuf:"varint,4,opt"` - Rand proto.Option[uint32] `protobuf:"varint,5,opt"` - SyncCookie []byte `protobuf:"bytes,6,opt"` + RoutingHead *RoutingHead `protobuf:"bytes,1,opt"` + ContentHead *ContentHead `protobuf:"bytes,2,opt"` + Body *MessageBody `protobuf:"bytes,3,opt"` + ClientSequence proto.Option[uint32] `protobuf:"varint,4,opt"` + Random proto.Option[uint32] `protobuf:"varint,5,opt"` + SyncCookie []byte `protobuf:"bytes,6,opt"` // optional AppShareInfo AppShare = 7; Via proto.Option[uint32] `protobuf:"varint,8,opt"` DataStatist proto.Option[uint32] `protobuf:"varint,9,opt"` diff --git a/client/packets/pb/message/message.proto b/client/packets/pb/message/message.proto index 61a384d9..7db8d769 100644 --- a/client/packets/pb/message/message.proto +++ b/client/packets/pb/message/message.proto @@ -48,8 +48,8 @@ message Message { optional RoutingHead RoutingHead = 1; optional ContentHead ContentHead = 2; optional MessageBody Body = 3; - optional uint32 Seq = 4; - optional uint32 Rand = 5; + optional uint32 ClientSequence = 4; + optional uint32 Random = 5; optional bytes SyncCookie = 6; // optional AppShareInfo AppShare = 7; optional uint32 Via = 8;