获取当日热门搜索词

This commit is contained in:
2024-12-16 11:43:49 +08:00
parent eb2e0e5d2a
commit e62c113c93

View File

@@ -38,7 +38,7 @@ export function get_search(n = 10) {
const ex = new Map() const ex = new Map()
const all = { 文章, 作品, 游戏, 截图, 收藏, 综合 } const all = { 文章, 作品, 游戏, 截图, 收藏, 综合 }
for (const key in all) { for (const key in all) {
all[key].搜索词.forEach((value, key) => { all[key].搜索词..forEach((value, key) => {
ex.set(key, (ex.get(key) || 0) + value) ex.set(key, (ex.get(key) || 0) + value)
}) })
} }