|
@@ -127,7 +127,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
}
|
|
|
Long courseId = Long.parseLong(roomId);
|
|
|
//记录用户实际选择的房间
|
|
|
- redisTemplate.opsForValue().set(courseId.toString(),courseSchedule.getId().toString());
|
|
|
+ redisTemplate.opsForValue().set(roomId,courseSchedule.getId().toString());
|
|
|
log.info("joinRoom current: roomId={}, userId={}", roomId, userId);
|
|
|
if(courseSchedule.getGroupType() == GroupType.COMM){
|
|
|
roomId = "I" + roomId;
|
|
@@ -285,6 +285,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
Long courseId = Long.parseLong(roomString);
|
|
|
|
|
|
Long currentRoomId = Long.parseLong(redisTemplate.opsForValue().get(roomString));
|
|
|
+ log.info("signInSuccess: currentRoomId={}", currentRoomId);
|
|
|
redisTemplate.delete(roomString);
|
|
|
/*CourseSchedule schedule = courseScheduleDao.get(courseId);
|
|
|
Date date = new Date();
|