|
@@ -131,12 +131,12 @@ export class RoomController extends BasicController {
|
|
|
console.log("roomId", this.roomId);
|
|
|
this.socket.join(this.roomId);
|
|
|
|
|
|
- const isInRoom = await isUserInRoom(this.roomId, this.userId);
|
|
|
- console.log("测试-强制上线", isInRoom, this.roomId, this.userId);
|
|
|
+ const isInRoom = await isUserInRoom(this.roomId, this.user.userId);
|
|
|
+ console.log("测试-强制上线", isInRoom, this.roomId, this.user.userId);
|
|
|
if (isInRoom) {
|
|
|
if (Number(isInRoom.onlineStatus) === 0) {
|
|
|
console.log("在房间人员掉线人员,强制上线!", isInRoom);
|
|
|
- this.roomAssistant.setOnlineStatus(this.roomId, this.userId, isInRoom);
|
|
|
+ this.roomAssistant.setOnlineStatus(this.roomId, this.user.userId, isInRoom);
|
|
|
}
|
|
|
}
|
|
|
} else {
|