refactor(module-llm): 注释掉 doc 文件转换逻辑
- 注释掉了处理 doc 文件转换为 docx 文件的代码块 - 保留了其他文件类型处理的注释代码
This commit is contained in:
parent
3fecb7e378
commit
a4e7cd67b7
@ -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 文件");
|
||||
|
Loading…
x
Reference in New Issue
Block a user