Ver código fonte

增加不存在房间时buildRoom

gemercheung 3 anos atrás
pai
commit
5defa13311
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/controller/room/assistant.js

+ 1 - 0
src/controller/room/assistant.js

@@ -175,6 +175,7 @@ export class RoomAssistant {
     if (hasRoom) {
       await this.redis.hSet(getInKey(roomId), userId, JSON.stringify(user));
     } else {
+      await buildRoom(roomId, userId, user);
       this.room.logger.error("不存在房间", roomId);
     }
     if (!isJoinRoom) {