Commit b3ea2faa authored by ryoii's avatar ryoii

Fix onlineImage url parse on long message, close #250

parent 97ead065
...@@ -35,7 +35,11 @@ internal class OnlineFriendImageImpl( ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment