|
@@ -221,20 +221,16 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
|
|
|
if(room == null){
|
|
|
throw new BusinessException(ResultCode.ROOM_MISS);
|
|
|
}
|
|
|
-
|
|
|
+ if(role.equals("follower")){
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(type == 0 ){
|
|
|
- room.setRoomViewCount(room.getRoomViewCount() +1);
|
|
|
- if(!role.equals("follower")){
|
|
|
- room.setLastLookTime(DateUtil.formatDateTime(new Date()));
|
|
|
- room.setRoomStatus(1);
|
|
|
- }
|
|
|
+ room.setRoomStatus(1);
|
|
|
}
|
|
|
if(type == 1 ){
|
|
|
- if(!role.equals("follower")){
|
|
|
- room.setLastLookTime(DateUtil.formatDateTime(new Date()));
|
|
|
- room.setRoomStatus(2);
|
|
|
- }
|
|
|
+ room.setRoomStatus(2);
|
|
|
}
|
|
|
+ room.setLastLookTime(DateUtil.formatDateTime(new Date()));
|
|
|
room.setUpdateTime(null);
|
|
|
this.updateById(room);
|
|
|
}
|