兼容幸运百分百活动

This commit is contained in:
zlzw 2023-01-10 13:32:08 +08:00
parent a22dfb6214
commit 749f756d58
4 changed files with 9 additions and 1 deletions

View File

@ -191,6 +191,7 @@ public class Constants {
public static final String LOVE_CHECK = "LoveCheck";//热度卡消息 public static final String LOVE_CHECK = "LoveCheck";//热度卡消息
public static final String TRUMPET_NOTIFY = "TrumpetNotify";//全栈喇叭 public static final String TRUMPET_NOTIFY = "TrumpetNotify";//全栈喇叭
public static final String LuckyAngel = "LuckyCheck";//幸运天使 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_CONN = 0;
public static final int SOCKET_WHAT_DISCONN = 2; public static final int SOCKET_WHAT_DISCONN = 2;

View File

@ -1179,6 +1179,7 @@ public class LiveAudienceActivity extends LiveActivity {
break; break;
case LUCKY_ANGEL: case LUCKY_ANGEL:
case LUCKY_100_CHECK:
manager.luckyAngel(event.getMsgModel()); manager.luckyAngel(event.getMsgModel());
break; break;
case LINK_MIC: case LINK_MIC:

View File

@ -257,7 +257,8 @@ public class LiveAudienceEvent extends BaseModel {
CUSTOM_FULL_SERVICE_NOTIFY(51, "全服通知"), CUSTOM_FULL_SERVICE_NOTIFY(51, "全服通知"),
CHANGE_VIEW(52, "更改连胜位置"), CHANGE_VIEW(52, "更改连胜位置"),
UPDATA_ROBOT(53, "更新机器人消息"), UPDATA_ROBOT(53, "更新机器人消息"),
LIVE_VIDEO(54, "画质选择"); LIVE_VIDEO(54, "画质选择"),
LUCKY_100_CHECK(55,"幸运百分百");
private int type; private int type;
private String name; private String name;

View File

@ -551,6 +551,11 @@ public class SocketRyClient {
.setType(LiveAudienceEvent.LiveAudienceType.LUCKY_ANGEL) .setType(LiveAudienceEvent.LiveAudienceType.LUCKY_ANGEL)
.setMsgModel(GsonUtils.fromJson(map.getJSONObject("ct").toString(), MsgModel.class))); .setMsgModel(GsonUtils.fromJson(map.getJSONObject("ct").toString(), MsgModel.class)));
break; 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: case Constants.PK_RANK_UPDATE:
Log.i("PK排位", map.toString()); Log.i("PK排位", map.toString());
JSONObject item = map.getJSONObject("ct"); JSONObject item = map.getJSONObject("ct");