Merge pull request #68 from Kataick/fix-zhihu-hot

fix(zhihu): fix hot error
This commit is contained in:
底层用户
2024-07-08 15:10:29 +08:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ const getList = async (noCache: boolean) => {
desc: data.excerpt, desc: data.excerpt,
cover: v.children[0].thumbnail, cover: v.children[0].thumbnail,
timestamp: getTime(data.created), timestamp: getTime(data.created),
hot: parseInt(v.detail_text.replace(/[^\d]/g, "")) * 10000, hot: parseFloat(v.detail_text.split(' ')[0]) * 10000,
url: `https://www.zhihu.com/question/${data.id}`, url: `https://www.zhihu.com/question/${data.id}`,
mobileUrl: `https://www.zhihu.com/question/${data.id}`, mobileUrl: `https://www.zhihu.com/question/${data.id}`,
}; };