|
@@ -437,8 +437,6 @@ public class RoomServiceImpl implements RoomService {
|
|
|
@Override
|
|
|
public void leaveRoomSuccess(String roomId,String userId,String deviceNum) throws Exception {
|
|
|
log.info("leaveRoomSuccess: roomId={}, userId={},deviceNum={}", roomId,userId,deviceNum);
|
|
|
-// RoomMember roomMember = roomMemberDao.findByRidAndUid(roomId, userId);
|
|
|
-
|
|
|
Integer firstCourseId = Integer.parseInt(roomId.substring(1));
|
|
|
RoleEnum roleEnum;
|
|
|
int parseInt = Integer.parseInt(userId);
|
|
@@ -453,6 +451,7 @@ public class RoomServiceImpl implements RoomService {
|
|
|
|
|
|
String leaveSuccessKey = "leaveRoomSuccess"+ roomId + userId;
|
|
|
Boolean aBoolean = redisTemplate.opsForValue().setIfAbsent(leaveSuccessKey, roomId, 2, TimeUnit.SECONDS);
|
|
|
+ log.info("leaveRoomSuccess: roomId={}, userId={},deviceNum={},aBoolean={}", roomId,userId,deviceNum,aBoolean);
|
|
|
if(!aBoolean){
|
|
|
if (StringUtils.isNotEmpty(deviceNum)){
|
|
|
//如果设备号不为空,更新设备号
|