优化一起听被控端

This commit is contained in:
mtvpls
2026-05-28 00:06:13 +08:00
parent 6b85c4464d
commit c942c8c9ea
7 changed files with 238 additions and 98 deletions
+8 -1
View File
@@ -15,7 +15,14 @@ export async function POST(request: NextRequest) {
const data = await fetchLxLyric(song);
return NextResponse.json({ success: true, data: { lyric: data.lyric || '', tlyric: data.tlyric || '' } });
return NextResponse.json(
{ success: true, data: { lyric: data.lyric || '', tlyric: data.tlyric || '' } },
{
headers: {
'Cache-Control': 'public, max-age=86400',
},
}
);
} catch (error) {
console.error('[music-v2] lyric route error:', error);
return internalError('获取歌词失败', (error as Error).message);