mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
feat(proxyUrl): 支持代理酷我资源, 需自己部署反向代理
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user