From e3a43a807af0a89ec89826924cf301f180fbcd32 Mon Sep 17 00:00:00 2001 From: IamFurina Date: Mon, 24 Mar 2025 12:29:41 +0800 Subject: [PATCH] =?UTF-8?q?perf.=20=E5=8A=A0=E5=BF=AB=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 0f290c9..37b209d 100644 --- a/server.js +++ b/server.js @@ -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来说,去除开通会员提示 } }