diff --git a/live/src/main/java/com/yunbao/live/bean/GuardUserModel.java b/live/src/main/java/com/yunbao/live/bean/GuardUserModel.java index 798b29154..119181051 100644 --- a/live/src/main/java/com/yunbao/live/bean/GuardUserModel.java +++ b/live/src/main/java/com/yunbao/live/bean/GuardUserModel.java @@ -50,6 +50,17 @@ public class GuardUserModel extends BaseModel { private String guardName; @SerializedName("guard_img") private String guardImg; + @SerializedName("guard_level_card") + private String guardLevelCard; + + public String getGuardLevelCard() { + return guardLevelCard; + } + + public GuardUserModel setGuardLevelCard(String guardLevelCard) { + this.guardLevelCard = guardLevelCard; + return this; + } public int getId() { return id; diff --git a/live/src/main/java/com/yunbao/live/views/NewGuardViewHolder.java b/live/src/main/java/com/yunbao/live/views/NewGuardViewHolder.java index 16c03320c..5bada6b2d 100644 --- a/live/src/main/java/com/yunbao/live/views/NewGuardViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/NewGuardViewHolder.java @@ -1,5 +1,6 @@ package com.yunbao.live.views; +import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import android.widget.TextView; @@ -52,7 +53,14 @@ public class NewGuardViewHolder extends RecyclerView.ViewHolder { user_nicename.setText(guardUserModel.getUserNicename()); userSex.setImageResource(CommonIconUtil.getSexIcon(guardUserModel.getSex())); guardLevel.setText(String.valueOf(guardUserModel.getGuardLevel())); - ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing); + contribution.setText(guardUserModel.getContribute()); + + if (TextUtils.equals(guardUserModel.getGuardLevelCard(),"0")){ + ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing); + }else { + ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing); + } + } }