(paths: string[])
| 335 | await this.safeEditMessage(msg, '✅ 媒体已处理完成'); |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | private cleanupFiles(paths: string[]) { |
| 340 | for (const filePath of paths) { |
| 341 | try { |
| 342 | if (fs.existsSync(filePath)) { |
| 343 | fs.unlinkSync(filePath); |
| 344 | } |
| 345 | } catch (err) { |
| 346 | console.warn('清理临时文件失败', err); |
| 347 | } |
| 348 | } |
| 349 | } |
| 350 |
no test coverage detected