perf. 加快访问速度

This commit is contained in:
IamFurina 2025-03-24 12:29:41 +08:00 committed by GitHub
parent 18715ca75d
commit e3a43a807a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,12 +241,12 @@ async function consturctServer(moduleDefs) {
if (req.baseUrl === '/song/url/v1' || req.baseUrl === '/song/url') {
const song = moduleResponse['body']['data'][0]
if ( 1===1 || (song.freeTrialInfo !== null || !song.url || [1, 4].includes(song.fee))) {
if (song.freeTrialInfo !== null || !song.url || [1, 4].includes(song.fee)) {
const match = require('@unblockneteasemusic/server')
const source = ['pyncmd', 'kuwo', 'youtube']
const source = ['pyncmd', 'kuwo']
const { url } = await match(req.query.id, source)
song.url = url
song.freeTrialInfo = null
song.freeTrialInfo = 'unblock'
console.log("解灰成功!")// 对于Splayer来说去除开通会员提示
}
}