fix: 修复下载 pcap 文件名称错误

This commit is contained in:
zhangshuai
2024-11-26 16:13:47 +08:00
parent b189c5d9d0
commit 7cafa08aee

View File

@@ -251,7 +251,7 @@ public class JobPlaybookExecResultChecker extends QuartzJobBean {
String pcapId = T.StrUtil.uuid();
// 上传 pcap 文件流
File pcapFile = FileResourceUtil.createFile(resources, job.getWorkspaceId(), Constants.FileTypeEnum.PCAP.getType(), pcapId, pcapId + "pcap");
File pcapFile = FileResourceUtil.createFile(resources, job.getWorkspaceId(), Constants.FileTypeEnum.PCAP.getType(), pcapId, pcapId + ".pcap");
File parentDir = pcapFile.getParentFile();
if (!parentDir.exists()) {
parentDir.mkdirs();