fix: file clean

This commit is contained in:
手瓜一十雪 2025-04-02 11:58:56 +08:00
parent 8e0ebe11e6
commit a68e9f86c0

View File

@ -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');
}