You've already forked FrameTour-BE
先原片再视频
This commit is contained in:
@ -134,16 +134,11 @@ public class VideoPieceGetter {
|
||||
SourceEntity sourceEntity = new SourceEntity();
|
||||
sourceEntity.setId(SnowFlakeUtil.getLongId());
|
||||
MemberSourceEntity videoSource = new MemberSourceEntity();
|
||||
MemberSourceEntity imageSource = new MemberSourceEntity();
|
||||
videoSource.setMemberId(task.getMemberId());
|
||||
videoSource.setType(1);
|
||||
videoSource.setIsBuy(0);
|
||||
videoSource.setSourceId(sourceEntity.getId());
|
||||
imageSource.setMemberId(task.getMemberId());
|
||||
imageSource.setType(2);
|
||||
imageSource.setIsBuy(0);
|
||||
if (imgSource != null) {
|
||||
imageSource.setSourceId(imgSource.getId());
|
||||
sourceEntity.setUrl(imgSource.getUrl());
|
||||
sourceEntity.setPosJson(imgSource.getPosJson());
|
||||
}
|
||||
@ -155,9 +150,6 @@ public class VideoPieceGetter {
|
||||
sourceEntity.setType(1);
|
||||
sourceMapper.add(sourceEntity);
|
||||
sourceMapper.addRelation(videoSource);
|
||||
if (imgSource != null) {
|
||||
sourceMapper.addRelation(imageSource);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean startFfmpegTask(FfmpegTask task) {
|
||||
|
Reference in New Issue
Block a user