Переглянути джерело

修复相应流苹果无效问题

jiequan.bi 5 роки тому
батько
коміт
b2f1633605

+ 3 - 1
module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils.java

@@ -59,7 +59,9 @@ public class HttpUtils {
     public static void setResponseHeader(HttpServletResponse response, String fileName) {
         try {
             fileName = new String(fileName.getBytes(), StandardCharsets.UTF_8);
-            response.setContentType("application/octet-stream;charset=ISO8859-1");
+            //response.setContentType("application/octet-stream;charset=ISO8859-1");
+            response.setContentType("application/vnd.ms-excel;charset=gb2312");
+
             response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
             response.addHeader("Pargam", "no-cache");
             response.addHeader("Cache-Control", "no-cache");