From 653a5aeff43087d26d352d8b8fd24ead30090c59 Mon Sep 17 00:00:00 2001 From: CaoMeiYouRen <996881204@qq.com> Date: Mon, 1 Apr 2024 21:27:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E5=A2=9E=E5=8A=A0=E4=BA=86=20?= =?UTF-8?q?=E6=AD=A3=E5=9C=A8=E7=9B=B4=E6=92=AD=E4=B8=AD=E7=9A=84=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E7=9A=84=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/bilibili/dynamic.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/routes/bilibili/dynamic.ts b/lib/routes/bilibili/dynamic.ts index d51d5c2fa..66bb53f4b 100644 --- a/lib/routes/bilibili/dynamic.ts +++ b/lib/routes/bilibili/dynamic.ts @@ -96,7 +96,7 @@ const getDes = (data: Modules) => { // 正在直播的动态 if (major.live_rcmd?.content) { const live_play_info = JSON.parse(major.live_rcmd.content)?.live_play_info; - return `${live_play_info?.area_name} · ${live_play_info?.watched_show?.text_large}`; + return `${live_play_info?.area_name}·${live_play_info?.watched_show?.text_large}`; } // 图文动态 if (major?.opus) { @@ -208,6 +208,12 @@ const getUrl = (item?: Item2, useAvid = false) => { url = `https://live.bilibili.com/${major?.live?.id}`; text = `
直播间地址:${url}`; break; + case 'MAJOR_TYPE_LIVE_RCMD': { + const live_play_info = JSON.parse(major.live_rcmd?.content || '{}')?.live_play_info; + url = `https://live.bilibili.com/${live_play_info?.room_id}`; + text = `
直播间地址:${url}`; + break; + } default: return null; }