From 78191f568edd0cf7c4cb65f7e2385f565eb233be Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期五, 01 八月 2025 13:46:27 +0800 Subject: [PATCH] yys 新增中强恒心配置文件 --- src/main/java/com/ruoyi/project/common/CommonController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/ruoyi/project/common/CommonController.java b/src/main/java/com/ruoyi/project/common/CommonController.java index 4248da0..c575425 100644 --- a/src/main/java/com/ruoyi/project/common/CommonController.java +++ b/src/main/java/com/ruoyi/project/common/CommonController.java @@ -1,5 +1,6 @@ package com.ruoyi.project.common; +import java.io.File; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; @@ -52,7 +53,7 @@ { throw new Exception(StringUtils.format("鏂囦欢鍚嶇О({})闈炴硶锛屼笉鍏佽涓嬭浇銆� ", fileName)); } - String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); + String realFileName = fileName.substring(fileName.indexOf("_") + 1); response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); FileUtils.setAttachmentResponseHeader(response, realFileName); -- Gitblit v1.9.3