mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-06-19 05:55:05 +08:00
fix protocol error.
This commit is contained in:
parent
1607cdf2bf
commit
c1be499251
@ -49,6 +49,7 @@ type QQClient struct {
|
||||
decoders map[string]func(*QQClient, uint16, []byte) (interface{}, error)
|
||||
handlers sync.Map
|
||||
server *net.TCPAddr
|
||||
currServerIndex int32
|
||||
|
||||
syncCookie []byte
|
||||
pubAccountCookie []byte
|
||||
@ -1055,8 +1056,6 @@ func (c *QQClient) doHeartbeat() {
|
||||
sso := packets.BuildSsoPacket(seq, uint32(SystemDeviceInfo.Protocol), "Heartbeat.Alive", SystemDeviceInfo.IMEI, []byte{}, c.OutGoingPacketSessionId, []byte{}, c.ksid)
|
||||
packet := packets.BuildLoginPacket(c.Uin, 0, []byte{}, sso, []byte{})
|
||||
_, _ = c.sendAndWait(seq, packet)
|
||||
_, pkt := c.buildGetMessageRequestPacket(msg.SyncFlag_START, time.Now().Unix())
|
||||
c.send(pkt)
|
||||
time.AfterFunc(30*time.Second, c.doHeartbeat)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user