mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix: dynamic packet decode.
This commit is contained in:
parent
e1502ecb48
commit
0238b2382b
@ -229,7 +229,7 @@ func (c *QQClient) netLoop() {
|
|||||||
info, ok := c.handlers.LoadAndDelete(pkt.SequenceId)
|
info, ok := c.handlers.LoadAndDelete(pkt.SequenceId)
|
||||||
var decoded interface{}
|
var decoded interface{}
|
||||||
decoded = pkt.Payload
|
decoded = pkt.Payload
|
||||||
if info != nil && !info.dynamic {
|
if info == nil || !info.dynamic {
|
||||||
decoded, err = decoder(c, &incomingPacketInfo{
|
decoded, err = decoder(c, &incomingPacketInfo{
|
||||||
SequenceId: pkt.SequenceId,
|
SequenceId: pkt.SequenceId,
|
||||||
CommandName: pkt.CommandName,
|
CommandName: pkt.CommandName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user