DEBUG
This commit is contained in:
7
main.js
7
main.js
@@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user