|
@@ -128,8 +128,9 @@ 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);
|
|
|
if (isInRoom) {
|
|
|
if (Number(isInRoom.onlineStatus) === 0) {
|