From 95c39cca9d0b4483b4c18f444baecde35dba70de Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Sat, 1 Apr 2023 15:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E9=97=B4=E8=BD=AE=E6=92=AD=E5=85=A5=E5=8F=A3(=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=AE=BE=E7=BD=AE=E5=B0=B1=E9=9A=90=E8=97=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/bean/WishModel.java | 14 +++++++++++++- .../com/yunbao/live/views/PortraitLiveManager.java | 5 ++++- 2 files changed, 17 insertions(+), 2 deletions(-) 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) {