|
|
@@ -170,7 +170,7 @@ public class AiVideoHelper { |
|
|
|
|
|
|
|
if (StringUtils.isBlank(response)) { |
|
|
|
result.setSuccess(false); |
|
|
|
result.setMsg("(MetaService)TTS音色预览失败,请稍后重试"); |
|
|
|
result.setMsg("(MetaService) no result"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
JSONObject jsonObject = JSON.parseObject(response); |
|
|
@@ -187,7 +187,7 @@ public class AiVideoHelper { |
|
|
|
String msg = status.getString("msg"); |
|
|
|
if (code == null) { |
|
|
|
result.setSuccess(false); |
|
|
|
result.setMsg("(MetaService)TTS音色预览异常,请稍后重试"); |
|
|
|
result.setMsg("(MetaService) error,"+msg); |
|
|
|
return result; |
|
|
|
} |
|
|
|
if (code.intValue() == 3000) { |
|
|
@@ -195,13 +195,11 @@ public class AiVideoHelper { |
|
|
|
result.setSuccess(true); |
|
|
|
result.setUrl(photo_speak + strURL); |
|
|
|
result.setTime(Double.valueOf(time)); |
|
|
|
String resultMsg = result.getMsgInfo(code, msg); |
|
|
|
result.setMsg(resultMsg); |
|
|
|
result.setMsg("(MetaService) error,"+msg); |
|
|
|
} else { |
|
|
|
result.setCode(code); |
|
|
|
result.setSuccess(false); |
|
|
|
String resultMsg = result.getMsgInfo(code, msg); |
|
|
|
result.setMsg(resultMsg); |
|
|
|
result.setMsg("(MetaService) error,"+msg); |
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
@@ -217,7 +215,7 @@ public class AiVideoHelper { |
|
|
|
AiPhotoSpeakResult result = new AiPhotoSpeakResult(); |
|
|
|
if (StringUtils.isBlank(response)) { |
|
|
|
result.setSuccess(false); |
|
|
|
result.setMsg("(MetaService empty)服务被Avatar攻击..."); |
|
|
|
result.setMsg("(MetaService) not result"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
@@ -227,7 +225,7 @@ public class AiVideoHelper { |
|
|
|
String msg = status.getString("msg"); |
|
|
|
if (code == null) { |
|
|
|
result.setSuccess(false); |
|
|
|
result.setMsg("(MetaService code empty)服务被Avatar攻击..."); |
|
|
|
result.setMsg("(MetaService) error."+msg); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
@@ -241,13 +239,11 @@ public class AiVideoHelper { |
|
|
|
result.setSaveDir(saveDir); |
|
|
|
result.setCode(code); |
|
|
|
result.setAudioPath(audioPath); |
|
|
|
String resultMsg = result.getMsgInfo(code, msg); |
|
|
|
result.setMsg(resultMsg); |
|
|
|
result.setMsg("(MetaService) error."+msg); |
|
|
|
} else { |
|
|
|
result.setSuccess(false); |
|
|
|
result.setCode(code); |
|
|
|
String resultMsg = result.getMsgInfo(code, msg); |
|
|
|
result.setMsg(resultMsg); |
|
|
|
result.setMsg("(MetaService) error."+msg); |
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
|