From 7fe7f566d1cb3dc2d4b8089c03d7188ed35a8723 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Fri, 7 Jun 2024 23:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=B5=B0=E4=BC=9A=E5=91=98=E9=80=9A?= =?UTF-8?q?=E9=81=93=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 3d6c622..c1233d4 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -971,7 +971,7 @@ export class tools extends plugin { // 处理短号,此时会变成y.music.163.com if (message.includes("163cn.tv")) { message = /(http:|https:)\/\/163cn\.tv\/([a-zA-Z0-9]+)/.exec(message)?.[0] - logger.info(message) + // logger.info(message) message = await axios.head(message).then((resp) => { return resp.request.res.responseUrl; }); @@ -1009,8 +1009,8 @@ export class tools extends plugin { const song = res.data.songs[0]; return `${ song?.name }-${ song?.ar?.[0].name }`.replace(/[\/\?<>\\:\*\|".… ]/g, ""); }); - // 一般这个情况是VIP歌曲 - if (url == null) { + // 一般这个情况是VIP歌曲 (如果没有url或者是国内, 国内全走临时接口,后续如果不要删除逻辑'!isOversea ||') + if (!isOversea || url == null) { // 临时接口 const vipMusicData = await axios.get(NETEASE_TEMP_API.replace("{}", title), { headers: {