Sfoglia il codice sorgente

//bug

private_deployment
xhxu 1 anno fa
parent
commit
6d22398748
2 ha cambiato i file con 4 aggiunte e 22 eliminazioni
  1. +1
    -8
      suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java
  2. +3
    -14
      suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java

+ 1
- 8
suimangService/src/main/java/com/iformall/domain/po/sm/UserMouldVideo.java Vedi File

@@ -152,14 +152,7 @@ public class UserMouldVideo extends TenantEntity {

@io.swagger.annotations.ApiModelProperty(value="视频文件",name="videoId")
private String videoId;
@TableField(exist = false)
private String videoPathUri;
public String getVideoPathUri(){
if(StringUtils.isNotBlank(this.videoPath)){
videoPathUri = AiVideoHelper.uri;
}
return videoPathUri;
}

@io.swagger.annotations.ApiModelProperty(value="",name="videoPath")
private String videoPath;
@io.swagger.annotations.ApiModelProperty(value="播放地址",name="videoPlayUrl")


+ 3
- 14
suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java Vedi File

@@ -31,17 +31,6 @@ import java.util.*;
@Component
public class AiVideoHelper {

// public static String uri = "http://222.128.9.132:22266";
// http://nas.pucao.cn:2001/gen_dh_video
public static String uri = "http://nas.pucao.cn:2001";

// public static String url = "http://nas.pucao.cn:2002";
// public static String hy_url = "http://nas.pucao.cn:2002";
//
// public static String url = "http://111.198.0.15:22299";
// public static String hy_url = "http://111.198.0.15:22288";


private static String url;
@Value("${photo.url}")
public void setUrl(String url){
@@ -70,7 +59,7 @@ public class AiVideoHelper {
public static AiVideoResult createVideo(AiVideoParam videoParam) {

log.info("生成视频start request:" + videoParam.neglectImgString());
String response = doPost(uri+"/gen_dh_video", JSONObject.toJSONString(videoParam));
String response = doPost(talk_url+"/gen_dh_video", JSONObject.toJSONString(videoParam));
log.info("生成视频end response:"+response);

AiVideoResult result = new AiVideoResult();
@@ -127,9 +116,9 @@ public class AiVideoHelper {
// }
}
public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam) {
String response = doPost("http://111.198.0.15:22299" + photo_speak_suffix, JSONObject.toJSONString(videoParam));
String response = doPost(url + photo_speak_suffix, JSONObject.toJSONString(videoParam));
log.info("生成视频end response:" + response);
log.info("生成视频的 IP:" + "http://111.198.0.15:22299" + photo_speak_suffix);
log.info("生成视频的 IP:" + url + photo_speak_suffix);
AiPhotoSpeakResult result = new AiPhotoSpeakResult();
if (StringUtils.isBlank(response)) {
result.setSuccess(false);


Caricamento…
Annulla
Salva