refactor(module-llm): 注释掉 doc 文件转换逻辑

- 注释掉了处理 doc 文件的代码块
- 保留了处理 md 文件的注释代码块
This commit is contained in:
Liuyang 2025-03-01 17:27:26 +08:00
parent 866f838245
commit 0edfd15f10

View File

@ -415,15 +415,15 @@ public class RagHttpService {
Path tempFilePath = downloadFileToTemp(fileUrl, fileName);
log.info("文件已下载到临时目录: {}", tempFilePath);
String fileSuffix = getFileSuffix(fileName);
if ("doc".equals(fileSuffix)) {
log.info("正在处理 doc 文件");
try {
tempFilePath= converterDocToDocx(tempFilePath.toString(), tempFilePath.toString().replace(".doc", ".docx"));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
// String fileSuffix = getFileSuffix(fileName);
// if ("doc".equals(fileSuffix)) {
// log.info("正在处理 doc 文件");
// try {
// tempFilePath= converterDocToDocx(tempFilePath.toString(), tempFilePath.toString().replace(".doc", ".docx"));
// } catch (Exception e) {
// throw new RuntimeException(e);
// }
// }
// if ("md".equals(fileSuffix)) {
// log.info("正在处理 md 文件");