From 69eef064c293b67bedf3d2d166b768971c91265d Mon Sep 17 00:00:00 2001 From: zhangshuai Date: Wed, 30 Oct 2024 14:29:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=20package=20=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E4=B8=BA=20filena?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/geedge/asw/module/app/controller/PackageController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/geedge/asw/module/app/controller/PackageController.java b/src/main/java/net/geedge/asw/module/app/controller/PackageController.java index 38001b8..9301625 100644 --- a/src/main/java/net/geedge/asw/module/app/controller/PackageController.java +++ b/src/main/java/net/geedge/asw/module/app/controller/PackageController.java @@ -65,7 +65,7 @@ public class PackageController { T.VerifyUtil.is(entity).notNull(RCode.SYS_RECORD_NOT_FOUND); File pkgFile = T.FileUtil.file(entity.getPath()); - ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, entity.getName(), T.FileUtil.readBytes(pkgFile)); + ResponseUtil.downloadFile(response, MediaType.APPLICATION_OCTET_STREAM_VALUE, pkgFile.getName(), T.FileUtil.readBytes(pkgFile)); } } \ No newline at end of file