This commit is contained in:
2024-12-16 10:20:27 +08:00
parent 05dc0aac1b
commit 368d23399a

View File

@@ -69,9 +69,10 @@ const 存档 = async (message = '正在存档...') => {
// 将今日浏览数并入总数 // 将今日浏览数并入总数
const all = { 文章, 作品, 游戏, 截图, 收藏, 综合 } const all = { 文章, 作品, 游戏, 截图, 收藏, 综合 }
for (const item of all) { for (const key in all) {
item.浏览数..forEach((value, key) => { const { , } = all[key].浏览数
item.浏览数..set(key, (item.浏览数..get(key) || 0) + value) .forEach((value, key) => {
.set(key, (.get(key) || 0) + value)
}) })
} }