测试修改

This commit is contained in:
18401019693 2022-10-28 15:59:56 +08:00
parent f1554f8201
commit bab377a202

View File

@ -278,11 +278,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
if (info.length > 0) { if (info.length > 0) {
String json = info[0]; String json = info[0];
WishlistModel model = GsonUtils.fromJson(json, WishlistModel.class); 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(); BannerBean bannerModel = new BannerBean();
bannerModel.setShow_type("2"); bannerModel.setShow_type("2");
bannerModel.setLink(CommonAppConfig.HOST + "/index.php"); 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); mLiveRoomViewHolder.addWishList(bannerModel);
} }