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

@@ -277,7 +277,7 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
if (CommonAppContext.getInstance().playId != null) {
LogUtils.e("@@@", "重连成功");
LogUtils.e("@@@", "" + CommonAppContext.getInstance().playId);
RetrofitClient.getInstance().roomUserReconnect(CommonAppContext.getInstance().playId);
// RetrofitClient.getInstance().roomUserReconnect(CommonAppContext.getInstance().playId);
}
}

View File

@@ -886,8 +886,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
// 输出当前的播放ID信息
LogUtils.e("@@@", "" + CommonAppContext.getInstance().playId)
// 调用RetrofitClient执行房间用户重连操作
RetrofitClient.getInstance()
.roomUserReconnect(CommonAppContext.getInstance().playId)
// RetrofitClient.getInstance().roomUserReconnect(CommonAppContext.getInstance().playId)
}
}
@@ -1434,19 +1433,19 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
LogUtils.e("messageEvent!!.text.type" + messageEvent.text.type)
CommonAppContext.getInstance().onlineMap[userId ?: ""] = messageEvent.text.type
if (mRoomInfoResp != null && mRoomInfoResp?.room_info != null) {
when(mRoomInfoResp?.room_info?.type_id) {
"1","3","4","8" -> {
if (mRoomInfoResp?.room_info?.label_id == "1") {
// roomFragment!!.SingSongEvent(messageEvent)
} else {
roomFragment!!.handleRoomMessage(messageEvent)
}
}
"2","7","9","10" -> {
roomFragment!!.handleRoomMessage(messageEvent)
}
}
roomFragment!!.handleRoomMessage(messageEvent)
// when(mRoomInfoResp?.room_info?.type_id) {
// "1","3","4","8" -> {
// if (mRoomInfoResp?.room_info?.label_id == "1") {
//// roomFragment!!.SingSongEvent(messageEvent)
// } else {
// roomFragment!!.handleRoomMessage(messageEvent)
// }
// }
// "2","7","9","10" -> {
// roomFragment!!.handleRoomMessage(messageEvent)
// }
// }
}
CommonAppContext.getInstance().getOnlineMap()