重构: App拆分10域文件+并发安全+结构化日志+依赖升级

This commit is contained in:
lxy
2026-05-16 20:45:14 +08:00
parent d17c20c579
commit 767311fc04
27 changed files with 1457 additions and 1218 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package storage
import (
"crypto/sha256"
"fmt"
"log/slog"
"os"
"path/filepath"
"time"
@@ -94,7 +95,7 @@ func CleanupExpiredCache() {
}
if len(expired) > 0 {
fmt.Printf("[下载缓存] 清理 %d 条过期记录\n", len(expired))
slog.Info("清理过期下载缓存", "count", len(expired))
}
}