fix: ASW-122 调整 playbook 下载文件名称

This commit is contained in:
zhangshuai
2024-10-29 17:06:40 +08:00
parent dee4829605
commit b1e4a60c46

View File

@@ -60,6 +60,6 @@ public class PlaybookController {
T.VerifyUtil.is(entity).notNull(RCode.SYS_RECORD_NOT_FOUND);
File playbookFile = T.FileUtil.file(entity.getPath());
ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, entity.getName(), T.FileUtil.readBytes(playbookFile));
ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, playbookFile.getName(), T.FileUtil.readBytes(playbookFile));
}
}