|
|
@@ -235,10 +235,10 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
try { |
|
|
|
AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); |
|
|
|
if (video.isSuccess()) { |
|
|
|
photoSpeakVideo.setSaveDir(video.getSaveDir()); |
|
|
|
photoSpeakVideo.setAudioPath(video.getAudioPath()); |
|
|
|
photoSpeakVideo.setVideoPath(video.getUrl()); |
|
|
|
this.updateById(photoSpeakVideo); |
|
|
|
// photoSpeakVideo.setSaveDir(video.getSaveDir()); |
|
|
|
// photoSpeakVideo.setAudioPath(video.getAudioPath()); |
|
|
|
// photoSpeakVideo.setVideoPath(video.getUrl()); |
|
|
|
// this.updateById(photoSpeakVideo); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
photoSpeakVideo.setVideoStatus(EnumVideoStatus.fail.getCode()); |
|
|
@@ -357,10 +357,10 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
|
try { |
|
|
|
AiVideoHqResult result = AiVideoHelper.videoHq(param); |
|
|
|
if (result.isSuccess()) { |
|
|
|
speakVideo.setVideoStatus(EnumVideoStatus.hy_success.getCode()); |
|
|
|
speakVideo.setVideoMsg("超分视频生成成功"); |
|
|
|
speakVideo.setVideoPath(result.getUrl()); |
|
|
|
this.updateById(speakVideo); |
|
|
|
// speakVideo.setVideoStatus(EnumVideoStatus.hy_success.getCode()); |
|
|
|
// speakVideo.setVideoMsg("超分视频生成成功"); |
|
|
|
// speakVideo.setVideoPath(result.getUrl()); |
|
|
|
// this.updateById(speakVideo); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
speakVideo.setVideoStatus(EnumVideoStatus.hy_fail.getCode()); |
|
|
|