@@ -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 |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -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(); | ||||