mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
bug fix.
This commit is contained in:
parent
901905bef5
commit
23ff9b7269
@ -13,6 +13,7 @@ import (
|
||||
"github.com/Mrs4s/MiraiGo/client/pb/structmsg"
|
||||
"github.com/Mrs4s/MiraiGo/utils"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"math"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@ -229,7 +230,7 @@ func decodeMessageSvcPacket(c *QQClient, _ uint16, payload []byte) (interface{},
|
||||
continue
|
||||
}
|
||||
if c.lastMessageSeq >= message.Head.MsgSeq {
|
||||
if c.lastMessageSeq-message.Head.MsgSeq < 1000 {
|
||||
if math.Abs(float64(c.lastMessageSeq-message.Head.MsgSeq)) < 1000 {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user