|
@@ -350,9 +350,6 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
if(type == 0 ){ //加入房间,开启带看
|
|
|
roomuser.setRoomStatus(1);
|
|
|
}
|
|
|
- if(type == 1 ){ //离开房间
|
|
|
- roomuser.setRoomStatus(2);
|
|
|
- }
|
|
|
roomuser.setUpdateTime(null);
|
|
|
roomUserService.updateById(roomuser);
|
|
|
}
|
|
@@ -363,12 +360,9 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
roomVisitLogService.addLog(roomId,roomUserId,userId,type);
|
|
|
}
|
|
|
if(type == 1 ){ //离开房间
|
|
|
- this.stopRoom(roomId,roomUserId);
|
|
|
+ //this.stopRoom(roomId,roomUserId);
|
|
|
roomVisitLogService.addLog(roomId,roomUserId,userId,type);
|
|
|
}
|
|
|
- if(type == 1 && roomUserId == null){
|
|
|
- room.setRoomStatus(2);
|
|
|
- }
|
|
|
room.setLastLookTime(DateUtil.formatDateTime(new Date()));
|
|
|
room.setUpdateTime(null);
|
|
|
this.updateById(room);
|