feat: 开发收藏和下载功能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user