Skip to content

Commit

Permalink
fix: clientseq
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Sep 9, 2024
1 parent 720793a commit 3ee0ef4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions client/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
12 changes: 6 additions & 6 deletions client/packets/pb/message/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/packets/pb/message/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3ee0ef4

Please sign in to comment.