diff --git a/client/decoders.go b/client/decoders.go index cece7b27..ac98d575 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -566,7 +566,7 @@ func decodeGroupImageStoreResponse(_ *QQClient, _ uint16, payload []byte) (inter } if rsp.BoolFileExit { if rsp.MsgImgInfo != nil { - return imageUploadResponse{IsExists: true, FileId: rsp.FileId, Width: rsp.MsgImgInfo.FileWidth, Height: rsp.MsgImgInfo.FileHeight}, nil + return imageUploadResponse{IsExists: true, FileId: rsp.Fid, Width: rsp.MsgImgInfo.FileWidth, Height: rsp.MsgImgInfo.FileHeight}, nil } return imageUploadResponse{IsExists: true, FileId: rsp.Fid}, nil } diff --git a/message/message.go b/message/message.go index 6fd9fd09..a6827c6a 100644 --- a/message/message.go +++ b/message/message.go @@ -306,6 +306,7 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) { CustomFace: &msg.CustomFace{ FilePath: e.Filename, Md5: e.Md5, + Size: e.Size, Flag: make([]byte, 4), OldData: imgOld, }, @@ -318,6 +319,7 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) { Origin: 1, FileId: int32(e.FileId), FilePath: e.ImageId, + Size: e.Size, Md5: e.Md5[:], Flag: make([]byte, 4), //OldData: imgOld,