Skip to content

Commit

Permalink
fix: manually get sigSession
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Apr 20, 2024
1 parent a0eec56 commit b69ce04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/imageUploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func (c *QQClient) ImageUploadGroup(groupUin uint32, element message.IMessageEle
if err != nil {
return nil, err
}
if !c.UploadSrcByStreamAsync(1004, io.ReadSeeker(bytes.NewReader(image.Stream)), c.sigSession, md5hash, extStream) {
sigSession, _ := c.GetServiceServer()
if !c.UploadSrcByStreamAsync(1004, io.ReadSeeker(bytes.NewReader(image.Stream)), sigSession, md5hash, extStream) {
return nil, errors.New("upload failed")
}
}
Expand Down

0 comments on commit b69ce04

Please sign in to comment.