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"