From af28a26e37bb8174effb9d0d4dbdd88767427174 Mon Sep 17 00:00:00 2001 From: Alen <33656288+cnxysoft@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:22:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81url?= =?UTF-8?q?=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,