From 154ce35198d2db82cee6961e3b02a7c01174569a Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sun, 7 Mar 2021 19:57:20 +0800 Subject: [PATCH] fix sub4 decode --- client/c2c_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/c2c_processor.go b/client/c2c_processor.go index 1e7c747a..cca8c559 100644 --- a/client/c2c_processor.go +++ b/client/c2c_processor.go @@ -268,7 +268,7 @@ func msgType0x211Decoder(c *QQClient, pMsg *msg.Message, info *incomingPacketInf c.Error("unmarshal sub msg 0x4 error: %v", err) return } - if sub4.NotOnlineFile != nil { + if sub4.NotOnlineFile != nil && sub4.NotOnlineFile.GetSubcmd() == 1 { // subcmd: 1 -> send, 2-> recv rsp, err := c.sendAndWait(c.buildOfflineFileDownloadRequestPacket(sub4.NotOnlineFile.FileUuid)) // offline_file.go if err != nil { return