This commit is contained in:
77
2024-04-13 11:48:57 +08:00
parent d3bf5a0bf7
commit 5bae5b5645

View File

@@ -138,6 +138,9 @@ public class RoomCheckJobService {
userCallService.update(Wrappers.lambdaUpdate(UserCall.class)
.eq(UserCall::getId,roomId)
.set(UserCall::getStatus, RoomStatusEnums.STATUS_TIMEOUT_CANCEL.getCode()));
List<String> keys = roomCtxCache.getSessionKeysByRoomId(roomId);
WsR hangUp = WsRMsgGen.hangup("接听超时", roomId, HangUpEnums.TIMEOUT.getCode());
RoomWebSocketUtil.sendSendMessage(keys, hangUp);
SettleResp settleResp = settleService.processOn(roomId);
nextCreateJob = settleResp.isNextRun();
}