Ver código fonte

修改视频创建逻辑、新增图片检查接口、新增百度API接口、修改上传阿里云检查、新增回调接口

private_deployment
lrh 1 ano atrás
pai
commit
9d5b0e51ee
1 arquivos alterados com 6 adições e 0 exclusões
  1. +6
    -0
      suimangService/src/main/java/com/iformall/service/sm/impl/PhotoSpeakVideoServiceImpl.java

+ 6
- 0
suimangService/src/main/java/com/iformall/service/sm/impl/PhotoSpeakVideoServiceImpl.java Ver arquivo

@@ -261,6 +261,12 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService {
AtomicInteger integer = new AtomicInteger(30); AtomicInteger integer = new AtomicInteger(30);
while (true){ while (true){
String progress = videoFactory.getExcutor(videoType).getVedioUploadProgress(result.getVideoId()); String progress = videoFactory.getExcutor(videoType).getVedioUploadProgress(result.getVideoId());
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

if (progress.equals("complete")) { if (progress.equals("complete")) {
mouldVideo.setVideoStatus(EnumVideoStatus.upload_success.getCode()); mouldVideo.setVideoStatus(EnumVideoStatus.upload_success.getCode());
this.updateById(mouldVideo); this.updateById(mouldVideo);


Carregando…
Cancelar
Salvar