Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2022-10-28 16:03:27 +08:00
commit 40cd824389

View File

@ -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);
}