update: api host

main
fadeaway 8 months ago
parent ad956a4d5a
commit 5a6d2a6cb5

@ -14,13 +14,13 @@ export const metadata: Metadata = { title: '雀乐期刊' };
// 获取期刊信息 // 获取期刊信息
async function getJournalInfo(journalId: string) { async function getJournalInfo(journalId: string) {
const res = await fetch(`http://39.103.180.196:9012/luoo-music/journal/${journalId}`); const res = await fetch(`http://api.indie.cn:9012/luoo-music/journal/${journalId}`);
return res.json(); return res.json();
} }
// 获取期刊歌曲列表 // 获取期刊歌曲列表
async function getSongList(journalId: string) { async function getSongList(journalId: string) {
const res = await fetch(`http://39.103.180.196:9012/luoo-music/song/journalId/${journalId}`); const res = await fetch(`http://api.indie.cn:9012/luoo-music/song/journalId/${journalId}`);
return res.json(); return res.json();
} }

@ -7,7 +7,7 @@ import MusicBanner from '@/components/MusicBanner';
import MusicPanel from '@/components/MusicPanel'; import MusicPanel from '@/components/MusicPanel';
async function getMusic(songId: string) { async function getMusic(songId: string) {
const res = await fetch(`http://39.103.180.196:9012/luoo-music/song/${songId}`); const res = await fetch(`http://api.indie.cn:9012/luoo-music/song/${songId}`);
return res.json(); return res.json();
} }

Loading…
Cancel
Save