Skip to content

Commit

Permalink
Merge pull request #68 from Kataick/fix-zhihu-hot
Browse files Browse the repository at this point in the history
fix(zhihu): fix hot error
  • Loading branch information
imsyy authored Jul 8, 2024
2 parents 250a90c + a4a1055 commit f213d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/zhihu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getList = async (noCache: boolean) => {
desc: data.excerpt,
cover: v.children[0].thumbnail,
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}`,
mobileUrl: `https://www.zhihu.com/question/${data.id}`,
};
Expand Down

0 comments on commit f213d98

Please sign in to comment.