|
@@ -1184,7 +1184,10 @@ public class RoomServiceImpl implements RoomService {
|
|
|
if (Objects.isNull(roomMember)) {
|
|
|
|
|
|
// 若老师已经离开房间,先添加到房间
|
|
|
- roomMember = saveRoomMember(roomId, userId);
|
|
|
+ if (StringUtils.equalsIgnoreCase(deviceNum, "LIVE")) {
|
|
|
+ roomMember = saveRoomMember(roomId, userId);
|
|
|
+ }
|
|
|
+
|
|
|
if (Objects.isNull(roomMember)) {
|
|
|
businessLogger.warn("leaveRoomSuccess: REPEATED_EXECUTION roomId={}, userId={}, deviceNum={}", roomId, userId, deviceNum);
|
|
|
return;
|