|
@@ -130,12 +130,13 @@ export class RoomController extends BasicController {
|
|
|
// 默认加入
|
|
|
console.log("roomId", this.roomId);
|
|
|
this.socket.join(this.roomId);
|
|
|
-
|
|
|
+ // 不带key的this.user.userId
|
|
|
const isInRoom = await isUserInRoom(this.roomId, this.user.userId);
|
|
|
if (isInRoom) {
|
|
|
if (Number(isInRoom.onlineStatus) === 0) {
|
|
|
console.log("在房间人员掉线人员,强制上线!", isInRoom);
|
|
|
- this.roomAssistant.setOnlineStatus(this.roomId, this.user.userId, isInRoom);
|
|
|
+ // 带key的this.userId
|
|
|
+ this.roomAssistant.setOnlineStatus(this.roomId, this.userId, isInRoom);
|
|
|
}
|
|
|
}
|
|
|
} else {
|