Explorar el Código

zimu test

private_deployment
谈文友 hace 1 año
padre
commit
8212e920e4
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. +7
    -0
      suimangCApi/src/main/java/com/iformall/controller/PhotoSpeakVideoController.java

+ 7
- 0
suimangCApi/src/main/java/com/iformall/controller/PhotoSpeakVideoController.java Ver fichero

@@ -180,6 +180,7 @@ public class PhotoSpeakVideoController extends BaseController {

PhotoSpeakVideo videoUpd = new PhotoSpeakVideo();
videoUpd.setId(record.getId());

if (mouldVideo.getPersonPhotoId() == null) {
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"未查询到人物照片");
}
@@ -208,6 +209,12 @@ public class PhotoSpeakVideoController extends BaseController {
if(StringUtils.isBlank(mouldVideo.getPaperwork())){
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"未填写视频文案数据");
}

if (record.getSubtitleEnabled()==1){
//开启字幕
videoUpd.setSubtitleParams(mouldVideo.getSubtitleParams());
}

//TODO 设置预估时长
// videoUpd.setVideoTime();
}else if(EnumVoiceFrom.FROM_UPD.getCode().equals(voiceFrom)){


Cargando…
Cancelar
Guardar