瀏覽代碼

fix 直播

he2802 3 年之前
父節點
當前提交
b9da645f18

+ 6 - 6
zhongzheng-system/src/main/java/com/zhongzheng/modules/schedule/service/impl/ScheduleServiceImpl.java

@@ -1187,17 +1187,17 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
         CourseSectionQueryBo queryBo = new CourseSectionQueryBo();
         queryBo.setSyncVid(1);
         List<CourseSectionVo> list = iCourseSectionService.queryList(queryBo);
-        System.out.println("节节");
-        System.out.println(list);
         for(CourseSectionVo vo : list){
             PolyvLiveQueryBo queryBo1 = new PolyvLiveQueryBo();
             queryBo1.setChannelId(vo.getLiveUrl());
             queryBo1.setSessionId(vo.getSessionId());
             LiveListChannelVideoLibraryResponse.ChannelVideoLibrary channelVideoLibrary = iPolyvLiveService.ListChannelVideoLibrary(queryBo1);
-            vo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());
-            CourseSection section = BeanUtil.toBean(vo, CourseSection.class);
-            section.setUpdateTime(DateUtils.getNowTime());
-            iCourseSectionService.updateById(section);
+            if(Validator.isNotEmpty(channelVideoLibrary.getVideoPoolId())){
+                vo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());
+                CourseSection section = BeanUtil.toBean(vo, CourseSection.class);
+                section.setUpdateTime(DateUtils.getNowTime());
+                iCourseSectionService.updateById(section);
+            }
         }
     }