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);