Fix onlineImage url parse on long message, close #250

This commit is contained in:
ryoii 2020-04-25 01:36:15 +08:00
parent 97ead06547
commit b3ea2faaae

View File

@ -35,7 +35,11 @@ internal class OnlineFriendImageImpl(
) : OnlineFriendImage() {
override val imageId: String get() = delegate.resId
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
override fun equals(other: Any?): Boolean {