gemercheung 3 years ago
parent
commit
b4f2ea526e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/controller/room/index.js

+ 3 - 2
src/controller/room/index.js

@@ -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);
       const isInRoom = await isUserInRoom(this.roomId, this.user.userId);
       if (isInRoom) {
       if (isInRoom) {
         if (Number(isInRoom.onlineStatus) === 0) {
         if (Number(isInRoom.onlineStatus) === 0) {