From 749f756d58b282c104fc8d0fa3e4fd0065589220 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 10 Jan 2023 13:32:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=B9=B8=E8=BF=90=E7=99=BE?= =?UTF-8?q?=E5=88=86=E7=99=BE=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/Constants.java | 1 + .../java/com/yunbao/live/activity/LiveAudienceActivity.java | 1 + .../main/java/com/yunbao/live/event/LiveAudienceEvent.java | 3 ++- .../src/main/java/com/yunbao/live/socket/SocketRyClient.java | 5 +++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/Constants.java b/common/src/main/java/com/yunbao/common/Constants.java index 3063290c0..2e8a5c808 100644 --- a/common/src/main/java/com/yunbao/common/Constants.java +++ b/common/src/main/java/com/yunbao/common/Constants.java @@ -191,6 +191,7 @@ public class Constants { public static final String LOVE_CHECK = "LoveCheck";//热度卡消息 public static final String TRUMPET_NOTIFY = "TrumpetNotify";//全栈喇叭 public static final String LuckyAngel = "LuckyCheck";//幸运天使 + public static final String Lucky100Check = "Lucky100Check";//幸运天使 public static final int SOCKET_WHAT_CONN = 0; public static final int SOCKET_WHAT_DISCONN = 2; diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index a769238ee..4fdde22aa 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -1179,6 +1179,7 @@ public class LiveAudienceActivity extends LiveActivity { break; case LUCKY_ANGEL: + case LUCKY_100_CHECK: manager.luckyAngel(event.getMsgModel()); break; case LINK_MIC: diff --git a/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java b/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java index 204abebf2..036bf54ea 100644 --- a/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java +++ b/live/src/main/java/com/yunbao/live/event/LiveAudienceEvent.java @@ -257,7 +257,8 @@ public class LiveAudienceEvent extends BaseModel { CUSTOM_FULL_SERVICE_NOTIFY(51, "全服通知"), CHANGE_VIEW(52, "更改连胜位置"), UPDATA_ROBOT(53, "更新机器人消息"), - LIVE_VIDEO(54, "画质选择"); + LIVE_VIDEO(54, "画质选择"), + LUCKY_100_CHECK(55,"幸运百分百"); private int type; private String name; diff --git a/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java b/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java index b2685d167..7d27169eb 100644 --- a/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java +++ b/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java @@ -551,6 +551,11 @@ public class SocketRyClient { .setType(LiveAudienceEvent.LiveAudienceType.LUCKY_ANGEL) .setMsgModel(GsonUtils.fromJson(map.getJSONObject("ct").toString(), MsgModel.class))); break; + case Constants.Lucky100Check: + Bus.get().post(new LiveAudienceEvent() + .setType(LiveAudienceEvent.LiveAudienceType.LUCKY_100_CHECK) + .setMsgModel(GsonUtils.fromJson(map.getJSONObject("ct").toString(), MsgModel.class))); + break; case Constants.PK_RANK_UPDATE: Log.i("PK排位", map.toString()); JSONObject item = map.getJSONObject("ct");