修复QQNT图片下载链接错误 (#2860)

* 修复QQNT图片下载链接错误

* 修复字段名错误

* 直接用HTTP也没问题
This commit is contained in:
YuSaki丶Kanade 2024-09-23 19:25:50 +08:00 committed by GitHub
parent f7649d225d
commit 283f8840d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}
}
}