|
@@ -133,8 +133,8 @@ export class RoomController extends BasicController {
|
|
|
// 不带key的this.user.userId
|
|
|
const isInRoom = await isUserInRoom(this.roomId, this.user.userId);
|
|
|
if (isInRoom) {
|
|
|
- if (Number(isInRoom.onlineStatus) === 0) {
|
|
|
- console.log("在房间人员掉线人员,强制上线!", isInRoom);
|
|
|
+ if (Number(isInRoom.onlineStatus) === 0 && this.roomAssistant.hasCall) {
|
|
|
+ console.log("hasCall在房间人员掉线人员,强制上线!", isInRoom);
|
|
|
// 带key的this.userId
|
|
|
this.roomAssistant.setOnlineStatus(this.roomId, this.userId, isInRoom);
|
|
|
}
|