|
@@ -99,9 +99,6 @@ export class RoomController extends BasicController {
|
|
|
// }
|
|
|
}
|
|
|
//检查房间人数
|
|
|
- const res = await this.roomAssistant.checkRoomMaximum(this.roomId);
|
|
|
- console.log("checkRoomMaximum:", res);
|
|
|
- this.roomAssistant.roomMax = res.isMax;
|
|
|
|
|
|
// if (assistantId && Number(this.userId) !== Number(assistantId) && !this.isHoster(this.user.role)) {
|
|
|
// userObj.role = "customer";
|
|
@@ -144,6 +141,11 @@ export class RoomController extends BasicController {
|
|
|
// 带key的this.userId
|
|
|
this.roomAssistant.setOnlineStatus(this.roomId, this.userId, isInRoom);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ console.log("不在房间里");
|
|
|
+ const res = await this.roomAssistant.checkRoomMaximum(this.roomId);
|
|
|
+ console.log("checkRoomMaximum:", res);
|
|
|
+ this.roomAssistant.roomMax = res.isMax;
|
|
|
}
|
|
|
} else {
|
|
|
this.logger.info("user-query-不存在 :", this.socket.handshake.query);
|