新增判断-push,im 是新用户才会推

This commit is contained in:
Martin 2024-09-06 15:23:41 +08:00
parent 1357eaaac9
commit 6f3dd58a8b

View File

@ -910,16 +910,18 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
L.e("getIsFirstEntry:"+data.getEnterRoomInfo().getIsFirstEntry());
L.e("getIsNewUser:"+data.getEnterRoomInfo().getIsNewUser());
L.e("getIsattention:"+data.getEnterRoomInfo().getIsattention());
//检测是否是首次观看该直播间
if(data.getEnterRoomInfo().getIsFirstEntry().equals("1")&&data.getEnterRoomInfo().getIsNewUser().equals("1")){
mLiveRoomViewHolder.firstLookLiveNotify();
if(data.getEnterRoomInfo().getIsNewUser().equals("1")){
//检测是否是首次观看该直播间
if(data.getEnterRoomInfo().getIsFirstEntry().equals("1")){
mLiveRoomViewHolder.firstLookLiveNotify();
}
//判断是否有免费礼物
if(data.getNewPeopleTask().getTask().getSendgift().equals("0")){
mLiveRoomViewHolder.firstLook5MinLiveNotify();
}
//观看200秒之后推送活动入口im消息
mLiveRoomViewHolder.firstTaskInlet1Notify();
}
//判断是否有免费礼物
if(data.getNewPeopleTask().getTask().getSendgift().equals("0")){
mLiveRoomViewHolder.firstLook5MinLiveNotify();
}
//观看200秒之后推送活动入口im消息
mLiveRoomViewHolder.firstTaskInlet1Notify();
}
@Override