lyhzzz 2 gadi atpakaļ
vecāks
revīzija
ee2a07d6b0

+ 1 - 7
src/main/java/com/fdkankan/tk/service/impl/RoomServiceImpl.java

@@ -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);