修复批量下载不添加注册表的问题,增加下载系统鲁棒性

This commit is contained in:
2025-10-03 10:08:29 +08:00
parent 16f60b4b77
commit 6508d2c438
10 changed files with 933 additions and 63 deletions
+3 -1
View File
@@ -63,7 +63,9 @@ function loggerMiddleware(req, res, next) {
req.path === '/api/download/tasks/active' ||
req.path === '/api/download/tasks/summary' ||
req.path === '/api/download/tasks/changes' ||
req.path === '/api/download/tasks/completed';
req.path === '/api/download/tasks/completed' ||
req.path === '/api/download/registry/stats' ||
/^\/api\/download\/check\/\d+/.test(req.path);
// 过滤掉仓库预览请求(图片预览)
const isRepositoryPreview = req.path === '/api/repository/preview';