1:取消所有的切换后台、im重连给服务段发送接口

2:修改1058,所有房间添加展示离线
This commit is contained in:
2025-12-02 14:11:40 +08:00
parent 56489b3af7
commit 4d2c1a5ace
5 changed files with 22 additions and 24 deletions

View File

@@ -807,7 +807,7 @@ public class CommonAppContext extends MultiDexApplication implements Applicatio
AppLifecycleUtil.onAppFrontGround();
}
if (playId!=null && !playId.equals("")){
RetrofitClient.getInstance().userRoomBack(playId, "2");
// RetrofitClient.getInstance().userRoomBack(playId, "2");
}
activityCount++;
}
@@ -822,7 +822,7 @@ public class CommonAppContext extends MultiDexApplication implements Applicatio
}
if (playId!=null && !playId.equals("")){
RetrofitClient.getInstance().userRoomBack(playId, "1");
// RetrofitClient.getInstance().userRoomBack(playId, "1");
}
AppLifecycleUtil.onAppBackGround();

View File

@@ -36,7 +36,7 @@ public class IMConnectionService extends Service {
Log.d(TAG, "IM connect success");
if (CommonAppContext.getInstance().playId != null) {
LogUtils.e("@@@", ""+CommonAppContext.getInstance().playId);
RetrofitClient.getInstance().roomUserReconnect(CommonAppContext.getInstance().playId);
// RetrofitClient.getInstance().roomUserReconnect(CommonAppContext.getInstance().playId);
}
}

View File

@@ -46,11 +46,10 @@ public class MqttConnect {
this.clientId = clientId;
// 这里是你自己需要订阅的主题
shutdown = "qx_room_topic"; // 关机
update_app = "qx_xunlehui"; // 发送更新APP
// qx_hour_ranking = "qx_hour_ranking";
qx_hour_ranking = "qx_hour_ranking";
qx_redpacket_arrive = "qx_redpacket_arrive";
shutdown = "qx_room_topic"; // 房间飘屏
update_app = "qx_xunlehui"; // 巡乐会飘屏
qx_hour_ranking = "qx_hour_ranking";//小时榜飘屏
qx_redpacket_arrive = "qx_redpacket_arrive"; //红包飘屏的主题
ArrayList<String> topicList = new ArrayList<>();
topicList.add(shutdown);