fix: file clean

This commit is contained in:
手瓜一十雪 committed 2025-04-02 11:58:56 +08:00
1 parent c4cbac4331
commit d9b33b5439
1 file changed
+1
+1
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');
}