gemercheung 3 роки тому
батько
коміт
27331022db
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      src/controller/room/index.js

+ 5 - 0
src/controller/room/index.js

@@ -74,6 +74,11 @@ export class RoomController extends BasicController {
       this.user.sig = this.getSig(this.user.userId);
       const oneSceneNum = this.user.sceneNumber || this.user.sceneNum;
       const { userId, roomId } = this.user;
+
+      if (!roomId) {
+        this.logger.error("不存在房间号", user);
+        roomId = "88888888";
+      }
       await this.initParams(userId, roomId, oneSceneNum);
 
       //role的顺序