✨ feat: 完善下载检测与查件生命周期
* 提供有鉴权和并发限制的轻量下载检测,不消耗次数或生成取件事件 * 支持保存检测间隔,并校验关闭选项和有效范围 * 将成功查件记录按时间并入生命周期,与实际发起取件事件区分 * 统一签名下载入口,文本与直链分享仅在下载时计数并保留直链传输 * 处理检测取消时的连接释放,补充鉴权、存储和生命周期集成验证 * 记录文件恢复和测试验收,明确先推送代码再部署测试环境
This commit is contained in:
1 parent
32b31ac271
commit
69cfa436de
11 files changed
+555
-39
No files matched your search
+7
-1
@@ -18,6 +18,7 @@ from apps.admin.dependencies import (
|
||||
)
|
||||
from apps.admin.schemas import (
|
||||
IDData,
|
||||
DownloadCheckData,
|
||||
IDsData,
|
||||
BatchUpdateFileData,
|
||||
BatchFilePolicyActionData,
|
||||
@@ -944,4 +945,9 @@ async def update_file(
|
||||
count=1,
|
||||
meta={"fields": sorted(update_data.keys())},
|
||||
)
|
||||
return APIResponse(detail="更新成功")
|
||||
return APIResponse(detail="更新成功")
|
||||
|
||||
@admin_api.post("/file/download-check")
|
||||
async def file_download_check(data: DownloadCheckData):
|
||||
from apps.admin.download_checks import check_downloads
|
||||
return APIResponse(detail=await check_downloads(data.ids))
|
||||
Reference in new issue
Block a user