From 70c596df937243b1a8dadacece0b896870c64388 Mon Sep 17 00:00:00 2001 From: Alen <33656288+cnxysoft@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:11:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20headers=E5=88=86=E5=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/go-cqhttp/DownloadFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/action/go-cqhttp/DownloadFile.ts b/src/onebot/action/go-cqhttp/DownloadFile.ts index cded4143..c95150d2 100644 --- a/src/onebot/action/go-cqhttp/DownloadFile.ts +++ b/src/onebot/action/go-cqhttp/DownloadFile.ts @@ -73,7 +73,7 @@ export default class GoCQHTTPDownloadFile extends BaseAction Date: Fri, 13 Sep 2024 17:22:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81?= =?UTF-8?q?url=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 52a36557..3d457720 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -201,7 +201,7 @@ export class NTQQFileApi { elementType: ElementType.VIDEO, elementId: '', videoElement: { - fileName: fileName || _fileName, + fileName: (fileName || _fileName).replace(/\.[^/.]+$/, '.mp4'), filePath: path, videoMd5: md5, thumbMd5,