Skip to content

Commit

Permalink
fix: 更正发送视频的uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Nov 14, 2024
1 parent 7113168 commit f2efba3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/richmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,12 @@ func (c *QQClient) VideoUploadPrivate(targetUID string, video *message.ShortVide
}
}
video.MsgInfo = uploadResp.Upload.MsgInfo
video.UUID = uploadResp.Upload.MsgInfo.MsgInfoBody[0].Index.FileUuid
err = proto.Unmarshal(uploadResp.Upload.CompatQMsg, video.Compat)
if err != nil {
return nil, err
}
video.Name = video.Compat.FileName
video.UUID = video.Compat.FileUuid
return video, nil
}

Expand Down Expand Up @@ -474,11 +475,12 @@ func (c *QQClient) VideoUploadGroup(groupUin uint32, video *message.ShortVideoEl
}
}
video.MsgInfo = uploadResp.Upload.MsgInfo
video.UUID = uploadResp.Upload.MsgInfo.MsgInfoBody[0].Index.FileUuid
err = proto.Unmarshal(uploadResp.Upload.CompatQMsg, video.Compat)
if err != nil {
return nil, err
}
video.Name = video.Compat.FileUuid
video.UUID = video.Compat.FileUuid
return video, nil
}

Expand Down

0 comments on commit f2efba3

Please sign in to comment.