mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 13:38:02 +08:00
update
This commit is contained in:
@@ -17,7 +17,8 @@ public class ZipUtil {
|
|||||||
if (CollectionUtils.isEmpty(imageUrls)) {
|
if (CollectionUtils.isEmpty(imageUrls)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
File zipFile = new File("images.zip");
|
String fileName = "images-" + System.currentTimeMillis() + ".zip";
|
||||||
|
File zipFile = new File(fileName);
|
||||||
try (FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos)) {
|
try (FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos)) {
|
||||||
for (int i = 0; i < imageUrls.size(); i++) {
|
for (int i = 0; i < imageUrls.size(); i++) {
|
||||||
String imageUrl = imageUrls.get(i);
|
String imageUrl = imageUrls.get(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user