Skip to content

Commit

Permalink
beta352
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko committed Mar 24, 2024
1 parent 0eb64d6 commit 123be98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion images/upload_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ func UploadBase64ImageToServer(msgid string, base64Image string, groupID string,
// 从Proto消息中读取值
realGroupID := mainMessage.GetA().GetB().GetInfo().GetDetail().GetGroupInfo().GetGroupNumber()
downloadURL := mainMessage.GetA().GetImageData().GetImageInfo().GetUrl()
downloadURL = "https://multimedia.nt.qq.com.cn" + downloadURL
//https的地址不能放到md里
//downloadURL = "https://multimedia.nt.qq.com.cn" + downloadURL
// 将 downloadURL 中的所有下划线 "_" 替换为 "%5f"
downloadURL = strings.Replace(downloadURL, "_", "%5f", -1)
downloadURL = "http://multimedia.nt.qq.com" + downloadURL
width := mainMessage.GetA().GetImageData().GetWidth()
height := mainMessage.GetA().GetImageData().GetHeight()

Expand Down

0 comments on commit 123be98

Please sign in to comment.