|
@@ -708,7 +708,15 @@ public class RoomServiceImpl implements RoomService {
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
|
|
@Override
|
|
@Override
|
|
public void leaveRoomSuccess(String roomId, String userId, String deviceNum) throws Exception {
|
|
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);
|
|
|
|
+ if (Objects.isNull(roomMember)) {
|
|
|
|
+ log.error("leaveRoomSuccess: REPEATED_EXECUTION roomId={}, userId={}, deviceNum={}", roomId, userId, deviceNum);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ log.info("leaveRoomSuccess: roomId={}, userId={}, deviceNum={}", roomId, userId, deviceNum);
|
|
|
|
+
|
|
Integer firstCourseId = Integer.parseInt(roomId.substring(1));
|
|
Integer firstCourseId = Integer.parseInt(roomId.substring(1));
|
|
RoleEnum roleEnum;
|
|
RoleEnum roleEnum;
|
|
int parseInt = Integer.parseInt(userId);
|
|
int parseInt = Integer.parseInt(userId);
|