From c9d63ae3c8a001870da4031d5452158ce520d34c Mon Sep 17 00:00:00 2001 From: rdpnr_puzhi <13060209078@163.com> Date: Thu, 14 Aug 2025 16:14:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=8E=E7=AB=AF):=20=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unisinsight/project/controller/FileChunkController.java | 4 ++-- .../unisinsight/project/service/impl/ClientServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java b/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java index 57d9f6c..02437ab 100644 --- a/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java +++ b/nex-be/src/main/java/com/unisinsight/project/controller/FileChunkController.java @@ -90,7 +90,7 @@ public class FileChunkController { @ApiImplicitParam(name = "image_name", value = "镜像名称", required = true, dataType = "String", paramType = "query"), @ApiImplicitParam(name = "image_version", value = "镜像版本", required = true, dataType = "String", paramType = "query"), @ApiImplicitParam(name = "os_version", value = "操作系统", required = true, dataType = "String", paramType = "query"), - @ApiImplicitParam(name = "description", value = "描述", required = true, dataType = "String", paramType = "query") + @ApiImplicitParam(name = "description", value = "描述", dataType = "String", paramType = "query") }) @ApiResponses({ @ApiResponse(code = 200, message = "上传成功"), @@ -108,7 +108,7 @@ public class FileChunkController { @RequestParam("file_size") long totalSize, @RequestParam("image_version") String imageVersion, @RequestParam("os_version") String osVersion, - @RequestParam("description") String description + @RequestParam(value = "description", required = false) String description ) { Map response = new HashMap<>(); diff --git a/nex-be/src/main/java/com/unisinsight/project/service/impl/ClientServiceImpl.java b/nex-be/src/main/java/com/unisinsight/project/service/impl/ClientServiceImpl.java index c32795c..dff5e09 100644 --- a/nex-be/src/main/java/com/unisinsight/project/service/impl/ClientServiceImpl.java +++ b/nex-be/src/main/java/com/unisinsight/project/service/impl/ClientServiceImpl.java @@ -57,8 +57,8 @@ public class ClientServiceImpl implements ClientService { List imageRes = BeanUtil.copyToList(images, ImageRes.class); List> collect = imageRes.stream().distinct().map(e -> { HashMap map = new HashMap<>(); - if (StringUtils.isNotBlank(e.getImageName())) { - map.put("name", e.getImageName()); + if (StringUtils.isNotBlank(e.getImageFileName())) { + map.put("name", e.getImageFileName()); } if (StringUtils.isNotBlank(e.getBtPath())) { if (e.getBtPath().contains("http://") || e.getBtPath().contains("https://")) {