|
@@ -127,12 +127,10 @@ export class RoomController extends BasicController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // 加入
|
|
|
- console.log("roomId", this.roomId);
|
|
|
- this.socket.join(this.roomId);
|
|
|
-
|
|
|
+ // 默认加入
|
|
|
+ // console.log("roomId", this.roomId);
|
|
|
+ // this.socket.join(this.roomId);
|
|
|
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);
|