From d9b33b5439b61f27290b366fc17061f429082a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 2 Apr 2025 11:58:56 +0800 Subject: [PATCH] fix: file clean --- src/core/apis/file.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 4c848695..33562d3c 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -182,6 +182,7 @@ export class NTQQFileApi { filePath = newFilePath; const { fileName: _fileName, path, fileSize, md5 } = await this.core.apis.FileApi.uploadFile(filePath, ElementType.VIDEO); + context.deleteAfterSentFiles.push(_fileName); if (fileSize === 0) { throw new Error('文件异常,大小为0'); }