diff --git a/main.js b/main.js index 34acdfc..810e137 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ const 综合 = new 类型() export function get_views(name, ids = []) { const all = { 文章, 作品, 游戏, 截图, 收藏, 综合 } const counts = all[name].浏览数.总 - return ids.map(id => ({ id, count: counts.get(id) || 0 })) + return ids.map(id => ({ id: parseInt(id, 10), count: counts.get(id) || 0 })) } // 获取当日热门搜索词