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://")) {