This commit is contained in:
Liuyang 2025-02-09 01:43:57 +08:00
parent 351a896e71
commit f8213c4c1c

View File

@ -248,8 +248,13 @@ public class RagHttpService {
if (jsonObject.getBoolean("status")) {
log.info(" ========= Response Body Result: {}", response.getBody());
aDo.setKnowledgeBaseIntro("11-- succcc: "+ragEmbed);
knowledgeBaseMapper.updateById(aDo);
throw exception(new ErrorCode(10047, " ------------ 知识库上传成功"));
} else {
aDo.setKnowledgeBaseIntro("11-- error: "+ragEmbed);
knowledgeBaseMapper.updateById(aDo);
throw exception(new ErrorCode(10047, " xxxxxxxxxxxx 知识库上传失败"));
}
}