From 2b919980a8c70554a64cb3d03cc95679af4d817f Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期一, 03 七月 2023 00:22:16 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 springboot/src/main/java/com/java110/boot/controller/app/file/UserDownloadFileController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/springboot/src/main/java/com/java110/boot/controller/app/file/UserDownloadFileController.java b/springboot/src/main/java/com/java110/boot/controller/app/file/UserDownloadFileController.java
index 93f3167..7767693 100644
--- a/springboot/src/main/java/com/java110/boot/controller/app/file/UserDownloadFileController.java
+++ b/springboot/src/main/java/com/java110/boot/controller/app/file/UserDownloadFileController.java
@@ -2,7 +2,7 @@
 
 import com.java110.core.client.FileUploadTemplate;
 import com.java110.core.log.LoggerFactory;
-import com.java110.dto.userDownloadFile.UserDownloadFileDto;
+import com.java110.dto.user.UserDownloadFileDto;
 import com.java110.intf.job.IUserDownloadFileV1InnerServiceSMO;
 import com.java110.utils.util.Assert;
 import org.slf4j.Logger;
@@ -47,7 +47,7 @@
         List<UserDownloadFileDto> userDownloadFileDtos = userDownloadFileV1InnerServiceSMOImpl.queryUserDownloadFiles(userDownloadFileDto);
         Assert.listOnlyOne(userDownloadFileDtos, "鏂囦欢涓嶅瓨鍦�");
         String tempUrl = userDownloadFileDtos.get(0).getTempUrl();
-        String fileName = tempUrl.substring(tempUrl.lastIndexOf("/"));
+        String fileName = userDownloadFileDtos.get(0).getFileTypeName()+tempUrl.substring(tempUrl.lastIndexOf("/"));
 
         response.setHeader("content-type", "application/octet-stream");
         response.setHeader("Content-Disposition", "attachment; filename=" + fileName);

--
Gitblit v1.8.0