From bdd382a3d956b736c5c4baba5aed70ac3c6e06b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E9=B1=BC?= <9903082+qdyovo@user.noreply.gitee.com> Date: Wed, 16 Oct 2024 11:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor=EF=BC=9A=E4=BB=85?= =?UTF-8?q?=E5=9C=A8=E5=BC=80=E5=90=AF=E8=87=AA=E5=BB=BA=E8=A7=A3=E6=9E=90?= =?UTF-8?q?API=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E5=8F=AF=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E9=AB=98=E9=9F=B3=E8=B4=A8=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 4af5e21..c5562e5 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1685,8 +1685,8 @@ async neteaseStatus(e, reck) { const song = res.data.songs[0]; return song?.al?.picUrl }); - // 一般这个情况是VIP歌曲 (如果没有url或者是国内,没有ck的走临时接口) - if (!isCkExpired || url == null) { + // 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用,必须自建并且ck可用状态才能进行高质量解析) + if (!isCkExpired || !this.useLocalNeteaseAPI || url == null) { url = await this.musicTempApi(e, title, "网易云音乐"); } else { // 拥有ck,并且有效,直接进行解析