From 79a78a0454860a62a6a91e8a962754db44afa3c6 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Wed, 10 Jan 2024 08:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E6=89=93=E5=8D=B0wps?= =?UTF-8?q?=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/ebtp/extend/wps/controller/WpsController.java | 3 +-- .../mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java index f4ee2d7..0afba9e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/controller/WpsController.java @@ -441,8 +441,7 @@ public class WpsController { InputStream videoStream = connection.getInputStream(); response.setCharacterEncoding("UTF-8"); - response.setHeader("Content-Length", "9999"); - response.setHeader("Content-Disposition", "attachment; filename=".concat(new String(dict.getDicName().getBytes(StandardCharsets.UTF_8), "ISO8859-1"))); + response.setHeader("Content-Disposition", "attachment; filename=".concat(new String((dict.getDicName()+"."+dict.getQueryType()).getBytes(StandardCharsets.UTF_8), "ISO8859-1"))); try (InputStream inputStream = videoStream; ServletOutputStream outputStream = response.getOutputStream()) { diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java index 9982c23..9bc0d2b 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java @@ -916,7 +916,7 @@ public class WpsServiceImpl implements WpsService { wpsService.appName = "biz-service-ebtp-extend"; wpsService.kswTimeLimit = "20000"; - String jm = wpsService.getDownloadEncrypt2("1743166333208461312","100001","9f07d66a-9b09-41ea-8d51-149b5ba677b0"); + String jm = wpsService.getDownloadEncrypt2("1740185231086813184","100001","74ebf317-0f48-46e2-9857-cc1ac440723e"); String[] values = wpsService.downloadDecrypt2(jm); for(String value : values){ System.out.println(value);