✨ feat: 默认关闭自动检测并支持全量文件枚举

* 默认仅手动检测下载状态,减少非主动的网盘读取请求
* 提供管理员全量文件 ID 快照,排除回收文件且不读取存储
* 验证枚举鉴权、跨分页范围及检测不产生取件副作用
* 明确先验证测试分支,再合并正式分支构建生产版本
This commit is contained in:
orion committed 2026-09-19 01:24:17 +08:00
1 parent 9d2ef0c34b
commit 8af45a70f6
4 files changed
+33 -1

No files matched your search

+6
View File
@@ -951,3 +951,9 @@ async def update_file(
async def file_download_check(data: DownloadCheckData):
from apps.admin.download_checks import check_downloads
return APIResponse(detail=await check_downloads(data.ids))
@admin_api.get("/file/download-check-ids")
async def file_download_check_ids():
ids = await FileCodes.filter(is_trashed=False).order_by("id").values_list("id", flat=True)
return APIResponse(detail=ids)