Commit f737dc8f authored by wujiang's avatar wujiang

Merge branch 'developer_bw' of…

Merge branch 'developer_bw' of http://36.40.66.175:5000/moa/jxdj_zx/amos-boot-zx-biz into developer_bw
parents a313256c 09c9feb1
......@@ -1398,8 +1398,9 @@ public class CommonServiceImpl {
double totalNum = (double) (totalSize/1024/1024);
if (totalNum > 500 ){
this.cleanup(folderPath);
response.setHeader("content-error","所选文件总大小不得超过500M,当前所选文件总大小为"+totalNum+"M");
return;
response.setHeader("content-error", URLEncoder.encode("所选文件总大小不得超过500M,当前所选文件总大小为"+totalNum+"M", "UTF-8"));
response.setContentType("text/plain");
throw new BadRequest("所选文件总大小不得超过500M,当前所选文件总大小为"+totalNum+"M");
}
// response.setContentLengthLong((int) totalSize);
addFolderToZip(zipFilePath, folderPath, zos,response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment