1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

fix group file download error.

This commit is contained in:
Mrs4s 2020-11-05 20:03:58 +08:00
parent 61dd50e464
commit ca72d542ca

View File

@ -251,6 +251,9 @@ func decodeOIDB6d6Response(_ *QQClient, _ uint16, payload []byte) (interface{},
if err := proto.Unmarshal(pkg.Bodybuffer, &rsp); err != nil {
return nil, err
}
if rsp.DownloadFileRsp.DownloadUrl == nil {
return nil, errors.New(rsp.DownloadFileRsp.ClientWording)
}
ip := rsp.DownloadFileRsp.DownloadIp
url := hex.EncodeToString(rsp.DownloadFileRsp.DownloadUrl)
return fmt.Sprintf("http://%s/ftn_handler/%s/", ip, url), nil