fix: thumb残留

This commit is contained in:
手瓜一十雪 committed 2025-02-03 14:09:51 +08:00
1 parent e899e9c861
commit 9115e26f8a
2 files changed
+9 -2

No files matched your search

+4 -1
View File
@@ -181,9 +181,12 @@ export class NTQQFileApi {
this.context.logger.logError('复制自定义缩略图失败', e);
}
}
context.deleteAfterSentFiles.push(thumbPath);
const thumbSize = (await fsPromises.stat(thumbPath)).size;
const thumbMd5 = await calculateFileMD5(thumbPath);
context.deleteAfterSentFiles.push(path);
context.deleteAfterSentFiles.push(thumbPath);
const uploadName = (fileName || _fileName).toLocaleLowerCase().endsWith(`.${fileExt.toLocaleLowerCase()}`) ? (fileName || _fileName) : `${fileName || _fileName}.${fileExt}`;
return {