diff --git a/api/app/services/app_service.py b/api/app/services/app_service.py index 1b0613e8..5ef34da8 100644 --- a/api/app/services/app_service.py +++ b/api/app/services/app_service.py @@ -2062,7 +2062,8 @@ class AppService: ) if memory_config_id: - updated_count = self._update_endusers_memory_config(app_id, memory_config_id) + + updated_count = self._update_endusers_memory_config_by_workspace(app.workspace_id, memory_config_id) logger.info( f"回滚时更新终端用户记忆配置: app_id={app_id}, version={version}, " f"memory_config_id={memory_config_id}, updated_count={updated_count}" diff --git a/api/app/services/multimodal_service.py b/api/app/services/multimodal_service.py index 51f4de5c..908ba953 100644 --- a/api/app/services/multimodal_service.py +++ b/api/app/services/multimodal_service.py @@ -588,7 +588,7 @@ class MultimodalService: return await self._extract_pdf_text(file_content) elif file_mime_type in DOC_MIME: return await self._extract_word_text(file_content) - elif file_mime_type in XLSX_MIME: + elif file_mime_type in XLSX_MIME and file.file_type.endswith(("xlsx", "xls")): return await self._extract_xlsx_text(file_content) elif file_mime_type in CSV_MIME: return await self._extract_csv_text(file_content)