mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 21:58:56 +08:00
modify banner data format
This commit is contained in:
parent
f454beb902
commit
9a6bd2a33f
@ -19,7 +19,7 @@ router.get("/", (req, res) => {
|
||||
try {
|
||||
const pattern = /<script[^>]*>\s*window\.Gbanners\s*=\s*([^;]+?);\s*<\/script>/g;
|
||||
const banners = pattern.exec(body)[1];
|
||||
res.send(JSON.stringify(eval(banners)));
|
||||
res.send(JSON.stringify(eval(`({code:200,banners:${banners}})`)));
|
||||
} catch (error) {
|
||||
res.status(502).send("fetch error");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user