From 548576e70102308fa3b8cceff536fb3e541dc8ba Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Fri, 8 Jan 2021 17:30:59 +0800 Subject: [PATCH] fix encrypt flag. close #96 --- client/highway.go | 2 +- client/image.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/highway.go b/client/highway.go index 8722eaad..f33aa7fd 100644 --- a/client/highway.go +++ b/client/highway.go @@ -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 diff --git a/client/image.go b/client/image.go index b941f14a..70c80db6 100644 --- a/client/image.go +++ b/client/image.go @@ -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")