原始文件气泡映射错误 + 多版本下载错版本
This commit is contained in:
1 parent
f877f61efd
commit
854bc8e4db
7 files changed
+203
-80
No files matched your search
@@ -867,22 +867,23 @@ class DifyService:
|
||||
remote_document_id = (
|
||||
resource.get('remote_document_id')
|
||||
or resource.get('dify_document_id')
|
||||
or resource.get('document_id')
|
||||
or resource.get('source_document_id')
|
||||
or resource.get('doc_id')
|
||||
or metadata.get('remote_document_id')
|
||||
or metadata.get('dify_document_id')
|
||||
or metadata.get('document_id')
|
||||
or metadata.get('source_document_id')
|
||||
or metadata.get('doc_id')
|
||||
or DifyService._find_first_by_keys(
|
||||
resource,
|
||||
[
|
||||
'remote_document_id',
|
||||
'dify_document_id',
|
||||
'document_id',
|
||||
'doc_id',
|
||||
'source_document_id',
|
||||
'doc_id',
|
||||
],
|
||||
)
|
||||
or resource.get('document_id')
|
||||
or metadata.get('document_id')
|
||||
)
|
||||
|
||||
return dataset_id, remote_document_id
|
||||
|
||||
Reference in new issue
Block a user