Browse Source

剔除非直播课的录制

hgw 2 years ago
parent
commit
e56585eeea

+ 4 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/LiveRoomVideoServiceImpl.java

@@ -72,6 +72,10 @@ public class LiveRoomVideoServiceImpl extends ServiceImpl<LiveRoomVideoDao, Live
                 //查询直播间
                 LiveRoom room = liveRoomService.getOne(new QueryWrapper<LiveRoom>().lambda()
                         .eq(LiveRoom::getRoomUid, roomUId));
+                if(Objects.isNull(room)){
+                    log.info("recordSync >>> roomUid is null");
+                    return;
+                }
                 //开始录制
                 if (notifyType == 1) {
                     insertVideo(fileUrl, recordId, notifyType, room);