feat(proxyUrl): 支持代理酷我资源, 需自己部署反向代理

This commit is contained in:
IamFurina
2025-08-24 23:09:52 +08:00
committed by ImFurina
parent de01a55aa2
commit 0c99618380
5 changed files with 20 additions and 3 deletions
+5 -2
View File
@@ -258,10 +258,13 @@ async function consturctServer(moduleDefs) {
song.url = url
song.freeTrialInfo = 'null'
console.log("解灰成功!")
}
}
if (song.url.includes('kuwo')) {
const proxy = process.env.PROXY_URL;
if (proxy) {song.proxyUrl = proxy + song.url}
}
}
const cookies = moduleResponse.cookie
if (!query.noCookie) {
if (Array.isArray(cookies) && cookies.length > 0) {