From 3c8a145aa7563880b4866f30d05c9b5410576ccb Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Fri, 10 Feb 2023 14:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=E8=A7=A3=E6=9E=90=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index b4108c2..ec0a6af 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -177,7 +177,7 @@ export class tools extends plugin { url = urlRex.exec(url)[0]; } - const path = `${ this.defaultPath }${ this.e.group_id || this.e.user_id }/temp/` + const path = `${ this.defaultPath }${ this.e.group_id || this.e.user_id }/` if (!fs.existsSync(path)) { mkdirsSync(path); } @@ -460,7 +460,6 @@ export class tools extends plugin { return true; } - // 工具:下载哔哩哔哩 async downBili (title, videoUrl, audioUrl) { return Promise.all([ downloadBFile( @@ -489,7 +488,7 @@ export class tools extends plugin { ), ]) .then(data => { - mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4') + return mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4'); }) }