fix(file-assets): 预签名下载改用浏览器可访问的 MinIO 地址

This commit is contained in:
hugo committed 2026-10-26 19:34:29 +08:00
1 parent 00c52fdaae
commit dfd48e08e7
9 files changed
+174 -30

No files matched your search

@@ -369,8 +369,9 @@ def list_source_evidence_files_api(source_code: str):
查询参数 record_kind 缺省 inbound,只接受 inbound 或 outbound。
可用条件与证据压缩包相同,但返回当天全部可用文件,不只最新一份。
每项含 file_id、original_filename、created_at、sha256、file_size、
presigned_url、download_url。不解析 Excel,不含行数。预览与下载各签一次
presigned_get_url(storage_key, expires_seconds=300);下载地址额外带
presigned_url、download_url。不解析 Excel,不含行数。 预览与下载各签一次
presigned_get_url(storage_key, expires_seconds=300);主机取 MINIO_PUBLIC_BASE_URL,
容器内读写仍用 MINIO_ENDPOINT。下载地址额外带
download_name(库存源_东八区年月日_时分.扩展名),避免浏览器用对象键哈希当保存名。
签发时写 TRANSFER_INBOUND_FILES_DOWNLOADED,aggregate_id 为 source_code。
"""