소스 검색

Merge branch 'dev_20230222_live' into master_saas

liujunchi 5 년 전
부모
커밋
942bcb68fb
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/ImLiveBroadcastRoomServiceImpl.java

+ 7 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ImLiveBroadcastRoomServiceImpl.java

@@ -1703,12 +1703,16 @@ public class ImLiveBroadcastRoomServiceImpl extends ServiceImpl<ImLiveBroadcastR
 
 
             //记录用户当前房间uid
-            RBucket<Object> bucket = redissonClient.getBucket(
+            RBucket<String> bucket = redissonClient.getBucket(
                 SPEAKER_ROOM_ING_INFO.replace(USER_ID, room.getSpeakerId().toString()));
 
+
             if (bucket.isExists()) {
-               log.info("createLiveRoom>>>>>>roomUid:{} is exists", bucket.get());
-               return;
+                ImLiveBroadcastRoomVo imLiveBroadcastRoomVo = getImLiveBroadcastRoomVo(bucket.get());
+                if (imLiveBroadcastRoomVo != null && imLiveBroadcastRoomVo.getLiveState() == 1) {
+                    log.info("createLiveRoom>>>>>>roomUid:{} is exists", bucket.get());
+                    return;
+                }
             }
 
             //去融云创建房间