From eaf4f4b08ee66edfde0df4247abd49f84972953e Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Thu, 6 Nov 2025 14:29:56 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E4=BC=98=E5=8C=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaozhi/common/exception/ErrorCode.java | 3 +- .../impl/KnowledgeBaseServiceImpl.java | 48 +-- .../impl/KnowledgeFilesServiceImpl.java | 104 +++--- .../main/resources/i18n/messages.properties | 341 +++++++++--------- .../resources/i18n/messages_en_US.properties | 5 +- .../resources/i18n/messages_zh_CN.properties | 5 +- .../resources/i18n/messages_zh_TW.properties | 3 +- .../src/views/KnowledgeFileUpload.vue | 15 +- 8 files changed, 260 insertions(+), 264 deletions(-) diff --git a/main/manager-api/src/main/java/xiaozhi/common/exception/ErrorCode.java b/main/manager-api/src/main/java/xiaozhi/common/exception/ErrorCode.java index b1534c4d..976f022c 100644 --- a/main/manager-api/src/main/java/xiaozhi/common/exception/ErrorCode.java +++ b/main/manager-api/src/main/java/xiaozhi/common/exception/ErrorCode.java @@ -205,8 +205,7 @@ public interface ErrorCode { int RAG_CONFIG_NOT_FOUND = 10164; // RAG配置未找到 int RAG_CONFIG_TYPE_ERROR = 10165; // RAG配置类型错误 int RAG_DEFAULT_CONFIG_NOT_FOUND = 10166; // 默认RAG配置未找到 - int RAG_CONFIG_MISSING_PARAMS = 10167; // RAG配置缺少必要参数 + int RAG_API_ERROR = 10167; // RAG配置缺少必要参数 int UPLOAD_FILE_ERROR = 10168; // 上传文件失败 int NO_PERMISSION = 10169; // 没有权限 - int RAG_API_ERROR = 10170; // RAG API接口错误 } diff --git a/main/manager-api/src/main/java/xiaozhi/modules/knowledge/service/impl/KnowledgeBaseServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/knowledge/service/impl/KnowledgeBaseServiceImpl.java index c3e3c581..75edd60b 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/knowledge/service/impl/KnowledgeBaseServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/knowledge/service/impl/KnowledgeBaseServiceImpl.java @@ -217,7 +217,7 @@ public class KnowledgeBaseServiceImpl extends BaseServiceImpl - + - + - + - +