Browse Source

//..

private_deployment
xhxu 1 year ago
parent
commit
a3c2bec6ca
5 changed files with 11 additions and 1 deletions
  1. +1
    -0
      suimangCApi/src/main/resources/application-dev.yml
  2. +1
    -0
      suimangCApi/src/main/resources/application-prod.yml
  3. +1
    -0
      suimangSchedule/src/main/resources/application-dev.yml
  4. +1
    -0
      suimangSchedule/src/main/resources/application-prod.yml
  5. +7
    -1
      suimangService/src/main/java/com/iformall/sm/AiDigitalAvatarHelper.java

+ 1
- 0
suimangCApi/src/main/resources/application-dev.yml View File

@@ -193,4 +193,5 @@ photo:
hy_url: http://111.198.0.15:22288 hy_url: http://111.198.0.15:22288
talk: http://nas.pucao.cn:2001 talk: http://nas.pucao.cn:2001
digital_avatar: http://111.198.0.15:22200 digital_avatar: http://111.198.0.15:22200
digital_avatar_hy: http://nas.pucao.cn:2003
callbackUrl: https://phototest.metavatar.cc/C callbackUrl: https://phototest.metavatar.cc/C

+ 1
- 0
suimangCApi/src/main/resources/application-prod.yml View File

@@ -148,4 +148,5 @@ photo:
hy_url: http://111.198.0.15:22288 hy_url: http://111.198.0.15:22288
talk: http://111.198.0.15:22266 talk: http://111.198.0.15:22266
digital_avatar: http://111.198.0.15:22200 digital_avatar: http://111.198.0.15:22200
digital_avatar_hy: http://nas.pucao.cn:2003
callbackUrl: https://photo.metavatar.cc/C callbackUrl: https://photo.metavatar.cc/C

+ 1
- 0
suimangSchedule/src/main/resources/application-dev.yml View File

@@ -196,4 +196,5 @@ photo:
hy_url: http://111.198.0.15:22288 hy_url: http://111.198.0.15:22288
talk: http://nas.pucao.cn:2001 talk: http://nas.pucao.cn:2001
digital_avatar: http://111.198.0.15:22200 digital_avatar: http://111.198.0.15:22200
digital_avatar_hy: http://nas.pucao.cn:2003
callbackUrl: https://phototest.metavatar.cc/C callbackUrl: https://phototest.metavatar.cc/C

+ 1
- 0
suimangSchedule/src/main/resources/application-prod.yml View File

@@ -152,4 +152,5 @@ photo:
hy_url: http://111.198.0.15:22288 hy_url: http://111.198.0.15:22288
talk: http://111.198.0.15:22266 talk: http://111.198.0.15:22266
digital_avatar: http://111.198.0.15:22200 digital_avatar: http://111.198.0.15:22200
digital_avatar_hy: http://nas.pucao.cn:2003
callbackUrl: https://photo.metavatar.cc/C callbackUrl: https://photo.metavatar.cc/C

+ 7
- 1
suimangService/src/main/java/com/iformall/sm/AiDigitalAvatarHelper.java View File

@@ -25,6 +25,12 @@ public class AiDigitalAvatarHelper {
this.digital_avatar = digital_avatar; this.digital_avatar = digital_avatar;
} }


private static String digital_avatar_hy;
@Value("${photo.digital_avatar_hy}")
public void setDigitalAvatarHy(String digital_avatar_hy){
this.digital_avatar_hy = digital_avatar_hy;
}

private static String callbackUrl; private static String callbackUrl;
@Value("${photo.callbackUrl}") @Value("${photo.callbackUrl}")
public void setCallbackUrl(String callbackUrl){ public void setCallbackUrl(String callbackUrl){
@@ -113,7 +119,7 @@ public class AiDigitalAvatarHelper {
public static SuperImgResult superImg(SuperImgParam param) { public static SuperImgResult superImg(SuperImgParam param) {


// log.info("生成照片start request:" + param.getBg_img()); // log.info("生成照片start request:" + param.getBg_img());
String response = HttpUtil.doAiVideoPost(digital_avatar + "/sr_img", JSONObject.toJSONString(param));
String response = HttpUtil.doAiVideoPost(digital_avatar_hy + "/sr_img", JSONObject.toJSONString(param));
log.info("照片超分end response:"+response); log.info("照片超分end response:"+response);


SuperImgResult result = new SuperImgResult(); SuperImgResult result = new SuperImgResult();


Loading…
Cancel
Save