fix: 调整 package 下载文件名称为 filename

This commit is contained in:
zhangshuai
2024-10-30 14:29:59 +08:00
parent 635c4cdade
commit 69eef064c2

View File

@@ -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));
}
}