Merge pull request #72 from Kataick/fix-weibo-hot-field

fix(weibo): 修复微博热度字段
This commit is contained in:
底层用户
2024-07-26 18:30:24 +08:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -85,8 +85,8 @@ export type RouterType = {
word: string; word: string;
word_scheme: string; word_scheme: string;
note: string; note: string;
category: string; flag_desc: string;
raw_hot: number; num: number;
onboard_time: number; onboard_time: number;
}; };
zhihu: { zhihu: {

View File

@@ -32,9 +32,9 @@ const getList = async (noCache: boolean) => {
id: v.mid, id: v.mid,
title: v.word, title: v.word,
desc: v.note || key, desc: v.note || key,
author: v.category, author: v.flag_desc,
timestamp: getTime(v.onboard_time), timestamp: getTime(v.onboard_time),
hot: v.raw_hot, hot: v.num,
url: `https://s.weibo.com/weibo?q=${encodeURIComponent(key)}&t=31&band_rank=1&Refer=top`, url: `https://s.weibo.com/weibo?q=${encodeURIComponent(key)}&t=31&band_rank=1&Refer=top`,
mobileUrl: `https://s.weibo.com/weibo?q=${encodeURIComponent( mobileUrl: `https://s.weibo.com/weibo?q=${encodeURIComponent(
key, key,