接口返回数据错乱容错。
This commit is contained in:
@@ -52,8 +52,10 @@ class HeartCpActivity : BaseMvpActivity<HeartCpPresenter, ActivityHeartCpBinding
|
|||||||
}
|
}
|
||||||
mBinding.ivHelp.setOnClickListener {
|
mBinding.ivHelp.setOnClickListener {
|
||||||
val dialog = DialogWebView(this)
|
val dialog = DialogWebView(this)
|
||||||
dialog.show(CommonAppContext.getInstance()
|
dialog.show(
|
||||||
.getCurrentEnvironment().serverUrl + "api/Page/page_show?id=31")
|
CommonAppContext.getInstance().currentEnvironment.serverUrl
|
||||||
|
+ "api/Page/page_show?id=31"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
mBinding.ivHeadLeft.setOnClickListener {
|
mBinding.ivHeadLeft.setOnClickListener {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class ItemCpHeartAdapter(
|
|||||||
tv.setTextColor(context.getColor(R.color.ff4a89ff))
|
tv.setTextColor(context.getColor(R.color.ff4a89ff))
|
||||||
R.color.ffff53cc
|
R.color.ffff53cc
|
||||||
}
|
}
|
||||||
if (item.remark.contains(item.to_user_info.nickname)) {
|
if (item.remark.contains(item.to_user_info.nickname) && item.to_user_info.nickname.isNotEmpty()) {
|
||||||
val builder = getContentColor(item.to_user_info.nickname, item.remark, cid)
|
val builder = getContentColor(item.to_user_info.nickname, item.remark, cid)
|
||||||
helper.setText(R.id.tv_content, builder)
|
helper.setText(R.id.tv_content, builder)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user