修正数据写入

This commit is contained in:
散仙
2024-11-26 02:29:11 +08:00
parent 9f51113734
commit 9b976ad402
3 changed files with 20 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ export default function () {
// 定时存档每10分钟
setInterval(() => {
archive('每10分钟自动存档...')
update('day_rank', Object.fromEntries(screenshots)) // 更新数据库中 day_rank 字段
update('day_rank', Object.entries(Object.fromEntries(screenshots))) // 更新数据库中 day_rank 字段
}, 600000)
// 实时读取日志文件