|
@@ -1,5 +1,5 @@
|
|
|
import { ROLES, CODEMEG, EVENT, FROMTYPE } from "../../enum/index.js";
|
|
|
-import { getCurrentUser, updateUser, removeRoomAllUsers, getAllRoomUsers, updateRoomUser, removeRoomUser, isUserInRooms } from "../../service/userService.js";
|
|
|
+import { getCurrentUser, updateUser, removeRoomAllUsers, getAllRoomUsers, updateRoomUser, removeRoomUser, isUserInRoom } from "../../service/userService.js";
|
|
|
// import { watchRoomService } from "../../service/watchRoomService.js";
|
|
|
import { setRoomConfig, getRoomConfig, updateRoomConfigByKey, isRoomMaster } from "../../service/roomConfigService.js";
|
|
|
|
|
@@ -131,7 +131,7 @@ export class RoomController extends BasicController {
|
|
|
console.log("roomId", this.roomId);
|
|
|
this.socket.join(this.roomId);
|
|
|
|
|
|
- const isInRoom = await isUserInRooms(this.roomId, this.userId);
|
|
|
+ const isInRoom = await isUserInRoom(this.roomId, this.userId);
|
|
|
console.log("测试-强制上线", isInRoom, this.roomId, this.userId);
|
|
|
if (isInRoom) {
|
|
|
if (Number(isInRoom.onlineStatus) === 0) {
|