From b1e4a60c463c119af6c0af671c0f3c28c7cc404b Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Tue, 29 Oct 2024 17:06:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ASW-122=20=E8=B0=83=E6=95=B4=20playbook?= =?UTF-8?q?=20=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../geedge/asw/module/runner/controller/PlaybookController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/geedge/asw/module/runner/controller/PlaybookController.java b/src/main/java/net/geedge/asw/module/runner/controller/PlaybookController.java index 749a21a..9fe092c 100644 --- a/src/main/java/net/geedge/asw/module/runner/controller/PlaybookController.java +++ b/src/main/java/net/geedge/asw/module/runner/controller/PlaybookController.java @@ -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)); } }