From bab377a2022bea77568b98645531f73b467f36e5 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 28 Oct 2022 15:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 d997314ea..241ede468 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -278,11 +278,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe if (info.length > 0) { String json = info[0]; WishlistModel model = GsonUtils.fromJson(json, WishlistModel.class); - if (mLiveRoomViewHolder != null && model != null) { + if (mLiveRoomViewHolder != null && model != null && model.getWishlist().size() > 0) { BannerBean bannerModel = new BannerBean(); bannerModel.setShow_type("2"); bannerModel.setLink(CommonAppConfig.HOST + "/index.php"); - bannerModel.setImageUrl("https://downs.yaoulive.com/%E5%BF%83%E6%84%BF%E5%8D%95%E6%88%BF%E9%97%B4_%E6%82%AC%E6%B5%AE.png"); + bannerModel.setImageUrl(model.getImg()); mLiveRoomViewHolder.addWishList(bannerModel); }