From 6f3dd58a8b8fc66dd8f83c174f7cc989662ad699 Mon Sep 17 00:00:00 2001 From: Martin <13046765170@163.com> Date: Fri, 6 Sep 2024 15:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A4=E6=96=AD-push?= =?UTF-8?q?=EF=BC=8Cim=20=E6=98=AF=E6=96=B0=E7=94=A8=E6=88=B7=E6=89=8D?= =?UTF-8?q?=E4=BC=9A=E6=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/views/PortraitLiveManager.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 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 d2e572d22..cdf8a051e 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -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