From 123be98de0f2fd1a02730b0f2e4df69c2968c602 Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 24 Mar 2024 20:39:57 +0800 Subject: [PATCH] beta352 --- images/upload_api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/images/upload_api.go b/images/upload_api.go index 35608fa3..6c5a983e 100644 --- a/images/upload_api.go +++ b/images/upload_api.go @@ -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()