From a27d033dc651f8912eea4f88f5371d024358fac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Fri, 1 Nov 2024 14:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0PK=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java | 1 + live/src/main/java/com/yunbao/live/socket/SocketSwClient.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java index 7f25cb194..8b592c320 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java @@ -1889,6 +1889,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V mHandler.sendEmptyMessageAtTime(WHAT_PK_TIME2, getNextSecondTime()); } } else { + L.eSw("PK时间已到 DRPKing = " + DRPKing + " mPkTimeCount:" + mPkTimeCount); if (DRPKing != -1) { mLiveAnchorViewHolder.showEndPkBt(); } diff --git a/live/src/main/java/com/yunbao/live/socket/SocketSwClient.java b/live/src/main/java/com/yunbao/live/socket/SocketSwClient.java index edd9cefa4..8456118fa 100644 --- a/live/src/main/java/com/yunbao/live/socket/SocketSwClient.java +++ b/live/src/main/java/com/yunbao/live/socket/SocketSwClient.java @@ -357,7 +357,7 @@ public class SocketSwClient { // break; case Constants.SOCKET_LIVE_DRPK_RANDOM: case Constants.SOCKET_LIVE_DRPK://多人PK - L.eSw("map" + new Gson().toJson(map)); + L.eSw("多人PK map" + new Gson().toJson(map)); int action3 = map.getIntValue("action"); //收到多人PK邀请 if (action3 == 1) { @@ -387,6 +387,8 @@ public class SocketSwClient { DRPKing = 1; } else if (action3 == 5) {//结束PK // endDRGif(); + + L.eSw("PK结束"); LiveRoomViewHolder.d_pk_view.setVisibility(View.GONE); if (LiveSwAnchorActivity.mLiveAnchorViewHolder != null) { LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);