feat: 统一 Commilitia Drop 全客户端命名与分发

This commit is contained in:
2026-07-31 22:56:10 +08:00
parent f7b0f04c9c
commit c480f0d1c2
77 changed files with 861 additions and 263 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func writeInto(dir, name string, data []byte) (string, error) {
}
safe := sanitizeFileName(name)
if safe == "" {
safe = "cdrop-download"
safe = "Commilitia Drop Download"
}
target := uniquePath(dir, safe)
if err := os.WriteFile(target, data, 0o644); err != nil {
@@ -248,7 +248,7 @@ func FinalizeStreamingDownload(sessionId, name string) (string, error) {
}
safe := sanitizeFileName(name)
if safe == "" {
safe = "cdrop-download"
safe = "Commilitia Drop Download"
}
target := uniquePath(d.dir, safe)
if err := os.Rename(d.tmp, target); err != nil {