|
|
@ -150,6 +150,8 @@ public class ExecTranslateServiceImpl implements ExecTranslateService { |
|
|
|
DownLoadUtil.downloadFile(fileUrl, downloadFilePath); |
|
|
|
//加载文件以base64编码 |
|
|
|
String fileContent = encodeFileToBase64(downloadFilePath); |
|
|
|
//删除临时文件 |
|
|
|
FileUtil.delFile(downloadFilePath); |
|
|
|
//构建文档翻译请求体 |
|
|
|
Map<String, Object> param = new HashMap<String, Object>(16); |
|
|
|
String fromLanguage = input.get(Constants.FROM).toString(); |
|
|
|