Commit feb3650d by levphon

导出excel下载 安全域名问题修复

1 parent 3d94ec6a
......@@ -20,7 +20,7 @@ public class AbstractController {
EasyExcelUtils.writeExcel(baos, dataList, fileName, clazz);
//将文件写入内存流 然后上传到文件服务器 返回文件服务器的地址给前端 前端执行下载
FileUploadServerData uploadServerData = FileUploadUtil.uploadToFileSystem(fileName, baos.toByteArray(), FileConstants.EXCEL_TYPE_XLSX);
return uploadServerData.getUrl();
return uploadServerData.getSecureUrl();
} catch (IOException e) {
log.error("上传Excel失败:{}", e.getMessage());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!