From 283f8840d4682cc30fbdd87c66fe76f6a71ff8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?YuSaki=E4=B8=B6Kanade?= <53483352+Nep-Timeline@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DQQNT=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E9=94=99=E8=AF=AF=20(#2860?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复QQNT图片下载链接错误 * 修复字段名错误 * 直接用HTTP也没问题 --- mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt b/mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt index a32f527f10..0e20eefd43 100644 --- a/mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt +++ b/mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt @@ -175,7 +175,7 @@ internal class OnlineNewTechImageImpl( override val originUrl: String get() = if (senderMeta.origUrl.isBlank()) { gchatImageUrlByImageId(imageId) - } else "http://" + delegate.info.noKeyDownloadInfo.domain + senderMeta.origUrl + } else "http://" + delegate.info.noKeyDownloadInfo.domain + "/download?appid=1407&fileid=" + delegate.info.msgInfo.fileId + senderMeta.origUrl override val isEmoji: Boolean by lazy { delegate.meta.main.isEmoji == 1 || delegate.meta.main.displayStr == "[动画表情]" @@ -204,4 +204,4 @@ private object OnlineImageIds { } else ext } } -} \ No newline at end of file +}