Skip to content

Commit

Permalink
修复QQNT图片下载链接错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Nep-Timeline authored Aug 31, 2024
1 parent f7649d2 commit 3d7e4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirai-core/src/commonMain/kotlin/message/image/OnlineImage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "https://" + delegate.info.noKeyDownloadInfo.domain + "/download?appid=1407&fileid=" + info.info.msgInfo.fileId + senderMeta.origUrl

override val isEmoji: Boolean by lazy {
delegate.meta.main.isEmoji == 1 || delegate.meta.main.displayStr == "[动画表情]"
Expand Down Expand Up @@ -204,4 +204,4 @@ private object OnlineImageIds {
} else ext
}
}
}
}

0 comments on commit 3d7e4fc

Please sign in to comment.