fix: file clean
This commit is contained in:
1 parent
c4cbac4331
commit
d9b33b5439
1 file changed
+1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user