心愿单直播间轮播入口(没有设置就隐藏)

This commit is contained in:
18401019693 2023-04-01 15:51:52 +08:00
parent 849677e50e
commit 95c39cca9d
2 changed files with 17 additions and 2 deletions

View File

@ -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,6 +157,7 @@ public class WishModel extends BaseModel {
}
return progress;
}
public int wishCurrent() {
int current = 0;
try {

View File

@ -480,7 +480,10 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
//初始化顶部banner
mLiveRoomViewHolder.initTopBanner();
//心愿单顶部bannner
if (data.getWishListProgress().getIsShow()!=0){
mLiveRoomViewHolder.updateTopBanner(data.getWishListProgress());
}
isattention = Integer.parseInt(data.getEnterRoomInfo().getIsattention());
if (isattention == 0) {
if (countDownTimer != null) {