فهرست منبع

增加不存在房间时buildRoom

gemercheung 3 سال پیش
والد
کامیت
5defa13311
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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) {