mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-12 14:00:12 +08:00
Fix onlineImage url parse on long message, close #250
This commit is contained in:
parent
97ead06547
commit
b3ea2faaae
@ -35,7 +35,11 @@ internal class OnlineFriendImageImpl(
|
|||||||
) : OnlineFriendImage() {
|
) : OnlineFriendImage() {
|
||||||
override val imageId: String get() = delegate.resId
|
override val imageId: String get() = delegate.resId
|
||||||
override val originUrl: String
|
override val originUrl: String
|
||||||
get() = "http://c2cpicdw.qpic.cn" + this.delegate.origUrl
|
get() = if (delegate.origUrl.isNotEmpty()) {
|
||||||
|
"http://c2cpicdw.qpic.cn" + this.delegate.origUrl
|
||||||
|
} else {
|
||||||
|
"http://c2cpicdw.qpic.cn/offpic_new/0/" + delegate.resId + "/0?term=2"
|
||||||
|
}
|
||||||
// TODO: 2020/4/24 动态获取图片下载链接的 host
|
// TODO: 2020/4/24 动态获取图片下载链接的 host
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user