Commit b9852218 authored by alex yao's avatar alex yao

fix

parent e112325f
...@@ -245,7 +245,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest { ...@@ -245,7 +245,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
throw new I18nMessageException("exception/application.does.not.exist"); throw new I18nMessageException("exception/application.does.not.exist");
} }
// 判断文件是否为空,如果不为空 // 判断文件是否为空,如果不为空
AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls); // AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls);
//获取知识库配置 //获取知识库配置
List<Integer> kdIds = knowledgeService.getKdIdsByKnowledgeInfoIds(infoEntity.getKnowledgeIds()); List<Integer> kdIds = knowledgeService.getKdIdsByKnowledgeInfoIds(infoEntity.getKnowledgeIds());
......
...@@ -124,7 +124,7 @@ public class AgentApplicationExposeServiceImpl implements AgentApplicationExpose ...@@ -124,7 +124,7 @@ public class AgentApplicationExposeServiceImpl implements AgentApplicationExpose
} }
// 判断文件是否为空,如果不为空 // 判断文件是否为空,如果不为空
AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls); // AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls);
if (StringUtils.isBlank(dialogsId)) { if (StringUtils.isBlank(dialogsId)) {
// 用于针对只有单Agent应用分享使用的场景,dialogsId为空 // 用于针对只有单Agent应用分享使用的场景,dialogsId为空
......
...@@ -45,7 +45,7 @@ public class OCRClient { ...@@ -45,7 +45,7 @@ public class OCRClient {
connection.setRequestMethod("POST"); connection.setRequestMethod("POST");
connection.setRequestProperty("x-ti-app-id", appId); connection.setRequestProperty("x-ti-app-id", appId);
connection.setRequestProperty("x-ti-secret-code", secretCode); connection.setRequestProperty("x-ti-secret-code", secretCode);
connection.setRequestProperty("Content-Type", "text/plain"); connection.setRequestProperty("Content-Type", "text/plain;charset=utf-8");
connection.setDoOutput(true); connection.setDoOutput(true);
try (OutputStream os = connection.getOutputStream()) { try (OutputStream os = connection.getOutputStream()) {
os.write(fileContent); os.write(fileContent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment