From 447e0c6153cdb4971d0e5e91bc9cb394b5ece4f1 Mon Sep 17 00:00:00 2001 From: Kataick Date: Thu, 25 Jul 2024 21:24:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(weibo):=20=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E5=8D=9A=E7=83=AD=E5=BA=A6=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router.types.d.ts | 4 ++-- src/routes/weibo.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router.types.d.ts b/src/router.types.d.ts index 82885d72..84961339 100644 --- a/src/router.types.d.ts +++ b/src/router.types.d.ts @@ -85,8 +85,8 @@ export type RouterType = { word: string; word_scheme: string; note: string; - category: string; - raw_hot: number; + flag_desc: string; + num: number; onboard_time: number; }; zhihu: { diff --git a/src/routes/weibo.ts b/src/routes/weibo.ts index 51b99ac2..ac3399af 100644 --- a/src/routes/weibo.ts +++ b/src/routes/weibo.ts @@ -32,9 +32,9 @@ const getList = async (noCache: boolean) => { id: v.mid, title: v.word, desc: v.note || key, - author: v.category, + author: v.flag_desc, 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`, mobileUrl: `https://s.weibo.com/weibo?q=${encodeURIComponent( key,