fix 导出Excel加密后无法查看的问题
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ public class SearchController {
|
||||
@RequestParam("url") String url,
|
||||
@RequestParam("appCode") String appCode,
|
||||
@RequestParam("secretKey") String secretKey,
|
||||
@RequestParam("scope") Integer scope,
|
||||
@RequestParam(value = "scope",required = false) Integer scope,
|
||||
HttpServletResponse response) {
|
||||
try (InputStream inputStream = IntekeyUtils.DecryptFile(url, appCode, secretKey, scope, file);
|
||||
OutputStream outputStream = response.getOutputStream()
|
||||
|
||||
+3
-1
@@ -133,7 +133,9 @@ public class DownloadDecryptFileServiceImpl implements DownloadDecryptFileServic
|
||||
|
||||
String contentType = response.getContentType();
|
||||
String fileName = getFileName(response);
|
||||
|
||||
if (!fileName.contains(".")) {
|
||||
return;
|
||||
}
|
||||
MultipartFile file = getMultipartFile(response,responseBody, contentType, fileName);
|
||||
// 访问路径
|
||||
String str = request.getRequestURI();
|
||||
|
||||
Reference in New Issue
Block a user