1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix multi msg download.

This commit is contained in:
Mrs4s 2020-09-14 14:11:45 +08:00
parent ad43b3f471
commit 3c229ac923

View File

@ -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])