|
@@ -134,10 +134,10 @@ export class RoomController extends BasicController {
|
|
|
const isInRoom = await isUserInRooms(this.roomId, this.userId);
|
|
|
if (isInRoom) {
|
|
|
if (Number(isInRoom.onlineStatus) === 0) {
|
|
|
+ console.log("在房间人员掉线人员,强制上线!", isInRoom);
|
|
|
this.setOnlineStatus(this.roomId, this.userId, isInRoom);
|
|
|
}
|
|
|
}
|
|
|
- console.log("isInRoom", isInRoom);
|
|
|
} else {
|
|
|
this.logger.info("user-query-不存在 :", this.socket.handshake.query);
|
|
|
this.socket.disconnect();
|
|
@@ -149,6 +149,8 @@ export class RoomController extends BasicController {
|
|
|
await updateRoomUser(this.roomId, this.userId, user);
|
|
|
}
|
|
|
|
|
|
+ silentUpdateRoom(roomId) {}
|
|
|
+
|
|
|
async initParams(userId, roomId, oneSceneNum) {
|
|
|
this.userId = `user:${userId}`;
|
|
|
this.syncId = `sync:${oneSceneNum}:${userId}`;
|