From a92c786f6f62765d82fd6b71c10cbb134c788b53 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Thu, 30 May 2024 22:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20reactor:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=BF=85=E8=A6=81=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 4 ++-- constants/tools.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index e98653d..4990be8 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1032,10 +1032,10 @@ export class tools extends plugin { // 下载音乐 downloadAudio(url, this.getCurDownloadPath(e), title, 'follow', musicExt).then(async path => { // 发送语音 - // e.reply(segment.record(path)); - // 判断是不是icqq await e.reply(segment.record(path)); + // 上传群文件 await this.uploadGroupFile(e, path); + // 删除文件 await checkAndRemoveFile(path); }).catch(err => { logger.error(`下载音乐失败,错误信息为: ${ err.message }`); diff --git a/constants/tools.js b/constants/tools.js index ab33477..28f5abc 100644 --- a/constants/tools.js +++ b/constants/tools.js @@ -123,6 +123,7 @@ export const NETEASE_SONG_DETAIL = "https://neteasecloudmusicapi.vercel.app/song /** * 下载VIP的临时接口 (感谢桑帛云API,如果站长能看到) + * 备用:另外一个兜底策略:https://www.hhlqilongzhu.cn/api/dg_wyymusic.php?gm={搜索内容}&n=1&type=json * @type {string} */ export const NETEASE_TEMP_API = "https://api.lolimi.cn/API/wydg/api.php?msg={}&n=1"