mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 07:33:10 +00:00
revert. 回退操作
This commit is contained in:
parent
712c26d3da
commit
a22c798a8d
@ -240,14 +240,15 @@ async function consturctServer(moduleDefs) {
|
||||
})
|
||||
console.log('[OK]', decode(req.originalUrl))
|
||||
|
||||
if (song.freeTrialInfo !== null && (req.baseUrl === '/song/url/v1' || req.baseUrl === '/song/url')) {
|
||||
if (req.baseUrl === '/song/url/v1' || req.baseUrl === '/song/url') {
|
||||
const song = moduleResponse['body']['data'][0]
|
||||
if (!song.url || [1, 4].includes(song.fee)) {
|
||||
const match = require('@unblockneteasemusic/server')
|
||||
const source = ['pyncmd', 'kuwo', 'youtube']
|
||||
const { url } = await match(req.query.id, source)
|
||||
song.url = url
|
||||
song.freeTrialInfo = "unblock" // 对于Splayer来说,去除开通会员提示
|
||||
song.freeTrialInfo = "unblock"
|
||||
console.log("解灰成功!")// 对于Splayer来说,去除开通会员提示
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user