fix: ASW-122 调整 playbook 下载文件名称
This commit is contained in:
@@ -60,6 +60,6 @@ public class PlaybookController {
|
|||||||
T.VerifyUtil.is(entity).notNull(RCode.SYS_RECORD_NOT_FOUND);
|
T.VerifyUtil.is(entity).notNull(RCode.SYS_RECORD_NOT_FOUND);
|
||||||
|
|
||||||
File playbookFile = T.FileUtil.file(entity.getPath());
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user