1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 20:45:53 +08:00

fix encrypt flag. close #96

This commit is contained in:
Mrs4s 2021-01-08 17:30:59 +08:00
parent ce4834c2ba
commit 548576e701
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ func (c *QQClient) highwayUploadFileMultiThreadingByBDH(path string, cmdId int32
return nil, errors.Wrap(err, "open file error")
}
if stat.Size() < 1024*1024*3 {
return c.highwayUploadByBDH(file, cmdId, ticket, ext, false)
return c.highwayUploadByBDH(file, cmdId, ticket, ext, encrypt)
}
type BlockMetaData struct {
Id int

View File

@ -44,7 +44,7 @@ func (c *QQClient) UploadGroupImage(groupCode int64, img io.ReadSeeker) (*messag
c.srvSsoAddrs = append(c.srvSsoAddrs, fmt.Sprintf("%v:%v", binary.UInt32ToIPV4Address(uint32(addr)), rsp.UploadPort[i]))
}
}
if _, err = c.highwayUploadByBDH(img, 2, rsp.UploadKey, EmptyBytes, true); err == nil {
if _, err = c.highwayUploadByBDH(img, 2, rsp.UploadKey, EmptyBytes, false); err == nil {
goto ok
}
return nil, errors.New("upload failed")