|
@@ -66,11 +66,11 @@ public class QRCodeController {
|
|
|
msg.setError("二维码生成失败,请联系管理员");
|
|
|
return msg;
|
|
|
}
|
|
|
- filesToZip[index] = uploadPath+fileName;
|
|
|
+ filesToZip[index] = "/upload/"+fileName;
|
|
|
index++;
|
|
|
}
|
|
|
-
|
|
|
- String zipFile = uploadPath+System.currentTimeMillis()+".zip";
|
|
|
+ String zipFileName = System.currentTimeMillis()+".zip";
|
|
|
+ String zipFile = uploadPath+zipFileName;
|
|
|
try (FileOutputStream fos = new FileOutputStream(zipFile);
|
|
|
ZipArchiveOutputStream zaos = new ZipArchiveOutputStream(fos)) {
|
|
|
|
|
@@ -98,7 +98,7 @@ public class QRCodeController {
|
|
|
msg.setError("二维码压缩包生成失败,请联系管理员");
|
|
|
return msg;
|
|
|
}
|
|
|
- msg.setData(zipFile);
|
|
|
+ msg.setData("/upload/"+zipFileName);
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
@@ -122,7 +122,7 @@ public class QRCodeController {
|
|
|
msg.setError("二维码生成失败,请联系管理员");
|
|
|
return msg;
|
|
|
}
|
|
|
- msg.setData(uploadPath+fileName);
|
|
|
+ msg.setData("/upload/"+fileName);
|
|
|
return msg;
|
|
|
}
|
|
|
|