diff --git a/common/src/main/java/com/yunbao/common/bean/WishModel.java b/common/src/main/java/com/yunbao/common/bean/WishModel.java index e1bef642b..b1bf7e722 100644 --- a/common/src/main/java/com/yunbao/common/bean/WishModel.java +++ b/common/src/main/java/com/yunbao/common/bean/WishModel.java @@ -28,6 +28,17 @@ public class WishModel extends BaseModel { private int giftType; @SerializedName("price") private int price; + @SerializedName("isShow") + private int isShow = -1; + + public int getIsShow() { + return isShow; + } + + public WishModel setIsShow(int isShow) { + this.isShow = isShow; + return this; + } public String getId() { return id; @@ -146,7 +157,8 @@ public class WishModel extends BaseModel { } return progress; } - public int wishCurrent(){ + + public int wishCurrent() { int current = 0; try { current = Integer.parseInt(wishlistProgress); diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index 73a003987..e19be54db 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -480,7 +480,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe //初始化顶部banner mLiveRoomViewHolder.initTopBanner(); //心愿单顶部bannner - mLiveRoomViewHolder.updateTopBanner(data.getWishListProgress()); + if (data.getWishListProgress().getIsShow()!=0){ + mLiveRoomViewHolder.updateTopBanner(data.getWishListProgress()); + } + isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention()); if (isattention == 0) { if (countDownTimer != null) {