mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-08 04:55:56 +08:00
fix build.
This commit is contained in:
parent
1fe17da712
commit
1166cb5764
@ -599,7 +599,7 @@ func (c *QQClient) UploadGroupImage(groupCode int64, img []byte) (*message.Group
|
|||||||
}
|
}
|
||||||
return nil, errors.New("upload failed")
|
return nil, errors.New("upload failed")
|
||||||
ok:
|
ok:
|
||||||
return message.NewGroupImage(binary.CalculateImageResourceId(h[:]), h[:], rsp.FileId), nil
|
return message.NewGroupImage(binary.CalculateImageResourceId(h[:]), h[:], rsp.FileId, int32(len(img)), rsp.Width, rsp.Height), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) UploadPrivateImage(target int64, img []byte) (*message.FriendImageElement, error) {
|
func (c *QQClient) UploadPrivateImage(target int64, img []byte) (*message.FriendImageElement, error) {
|
||||||
@ -670,7 +670,7 @@ func (c *QQClient) QueryGroupImage(groupCode int64, hash []byte, size int32) (*m
|
|||||||
return nil, errors.New(rsp.Message)
|
return nil, errors.New(rsp.Message)
|
||||||
}
|
}
|
||||||
if rsp.IsExists {
|
if rsp.IsExists {
|
||||||
return message.NewGroupImage(binary.CalculateImageResourceId(hash), hash, rsp.FileId), nil
|
return message.NewGroupImage(binary.CalculateImageResourceId(hash), hash, rsp.FileId, size, rsp.Width, rsp.Height), nil
|
||||||
}
|
}
|
||||||
return nil, errors.New("image not exists")
|
return nil, errors.New("image not exists")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user