Skip to content

Commit

Permalink
修复QQNT图片下载链接错误 (#2860)
Browse files Browse the repository at this point in the history
* 修复QQNT图片下载链接错误

* 修复字段名错误

* 直接用HTTP也没问题
  • Loading branch information
Nep-Timeline authored Sep 23, 2024
1 parent f7649d2 commit 283f884
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 "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 == "[动画表情]"
Expand Down Expand Up @@ -204,4 +204,4 @@ private object OnlineImageIds {
} else ext
}
}
}
}

0 comments on commit 283f884

Please sign in to comment.