From 014b5d526ad7502638b9faa6689262850f22fa0e Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 26 Mar 2026 01:14:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20FollowedLiveStrip=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20+=20getFollowedLiveRooms=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/FollowedLiveStrip.tsx | 11 ++++++++--- services/bilibili.ts | 3 +-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/FollowedLiveStrip.tsx b/components/FollowedLiveStrip.tsx index 5af6c7c..745fd37 100644 --- a/components/FollowedLiveStrip.tsx +++ b/components/FollowedLiveStrip.tsx @@ -46,13 +46,18 @@ export function FollowedLiveStrip() { > - 直播 + + 直播 + - + {room.uname.length > 5 ? room.uname.slice(0, 5) : room.uname} @@ -65,7 +70,7 @@ export function FollowedLiveStrip() { const styles = StyleSheet.create({ container: { backgroundColor: "#f4f4f4", - paddingHorizontal: 3, + paddingHorizontal: 4, paddingVertical: 8, }, scrollContent: { diff --git a/services/bilibili.ts b/services/bilibili.ts index edf38c6..c5a74f6 100644 --- a/services/bilibili.ts +++ b/services/bilibili.ts @@ -509,8 +509,7 @@ export async function getDanmaku(cid: number): Promise { export async function getFollowedLiveRooms(): Promise { const res = await api.get(`${LIVE_BASE}/xlive/web-ucenter/v1/xfetter/FeedList`, { - params: { page: 1, page_size: 30, platform: 'web' }, - headers: { Referer: 'https://live.bilibili.com' }, + params: { page: 1, page_size: 10, platform: 'web' }, }); if (res.data?.code !== 0) { console.warn('getFollowedLiveRooms error:', res.data?.code, res.data?.message);