|
@@ -263,12 +263,16 @@ public class KfMsgWebsocketHandler implements WebSocketHandler {
|
|
|
//分页获取房间消息列表
|
|
|
Tuple2<KfWebSocketMsgDTO.PageBean, List<KfWebSocketMsgDTO.RoomMsgBean>> tuple2 = kfRoomMsgService
|
|
|
.msgRoomHistory(param.getRoomId(), param.getPage());
|
|
|
+ //房间信息设置
|
|
|
+ List<KfWebSocketMsgDTO.RoomBean> roomList = kfRoomService.getRoomByRoomId(param.getRoomId());
|
|
|
+ //发送消息
|
|
|
this.sendMessage(session, KfWebSocketMsgDTO.builder()
|
|
|
.webSocketMsgType(param.getWebSocketMsgType())
|
|
|
.kfUserId(SecurityUtil.getUserId())
|
|
|
.page(tuple2.getT1())
|
|
|
.gameId(param.getGameId())
|
|
|
.roomId(param.getRoomId())
|
|
|
+ .roomList(roomList)
|
|
|
.roomMsgList(tuple2.getT2())
|
|
|
.build());
|
|
|
}
|