From 3c229ac923b17ef4357c0bd5bb9fa428219612c6 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Mon, 14 Sep 2020 14:11:45 +0800 Subject: [PATCH] fix multi msg download. --- client/decoders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/decoders.go b/client/decoders.go index 48bf7aa9..910e92b3 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -876,7 +876,7 @@ func decodeMultiApplyDownResponse(c *QQClient, _ uint16, payload []byte) (interf } rsp := body.MultimsgApplydownRsp[0] prefix := func() string { - if rsp.MsgExternInfo.ChannelType == 2 { + if rsp.MsgExternInfo != nil && rsp.MsgExternInfo.ChannelType == 2 { return "https://ssl.htdata.qq.com" } return fmt.Sprintf("http://%s:%d", binary.UInt32ToIPV4Address(uint32(rsp.Uint32DownIp[0])), body.MultimsgApplydownRsp[0].Uint32DownPort[0])