feat: 开发收藏和下载功能

This commit is contained in:
R524809
2026-05-06 18:32:15 +08:00
parent 9bdf850f20
commit c0b1bfddb0
17 changed files with 1262 additions and 127 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
import { checkAndSaveImage } from './saveImage';
import tracker from './tracker';
import { incrementWorksheetDownloads } from './worksheetStats';
import { addDownloadLog } from './downloadLogs';
// 存储键名
const STORAGE_KEY_DOWNLOAD_COUNT = 'downloadCount';
@@ -212,7 +212,7 @@ function doDownload(
if (saved) {
incrementDownloadCount();
if (options.worksheetId) {
incrementWorksheetDownloads(options.worksheetId);
addDownloadLog(options.worksheetId);
}
}
return saved;