|
|
@@ -258,15 +258,13 @@ public class LiveServiceImpl implements ILiveService
|
|
|
live.setIsAudit(0);
|
|
|
live.setStatus(1);
|
|
|
int save = baseMapper.insertLive(live);
|
|
|
- if (live.getLiveType() == 2) {
|
|
|
- // 录播 才有视频
|
|
|
- LiveVideo liveVideo = new LiveVideo();
|
|
|
- liveVideo.setLiveId(live.getLiveId());
|
|
|
- liveVideo.setVideoUrl(live.getVideoUrl());
|
|
|
- liveVideo.setVideoType(1);
|
|
|
- liveVideo.setDuration(live.getDuration());
|
|
|
- liveVideoService.insertLiveVideo(liveVideo);
|
|
|
- }
|
|
|
+ // 录播 才有视频
|
|
|
+ LiveVideo liveVideo = new LiveVideo();
|
|
|
+ liveVideo.setLiveId(live.getLiveId());
|
|
|
+ liveVideo.setVideoUrl(live.getVideoUrl());
|
|
|
+ liveVideo.setVideoType(1);
|
|
|
+ liveVideo.setDuration(live.getDuration());
|
|
|
+ liveVideoService.insertLiveVideo(liveVideo);
|
|
|
//新增直播数据表
|
|
|
LiveData liveData = new LiveData();
|
|
|
liveData.setLiveId(live.getLiveId());
|