mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update
This commit is contained in:
@@ -17,7 +17,8 @@ public class ZipUtil {
|
||||
if (CollectionUtils.isEmpty(imageUrls)) {
|
||||
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)) {
|
||||
for (int i = 0; i < imageUrls.size(); i++) {
|
||||
String imageUrl = imageUrls.get(i);
|
||||
|
||||
Reference in New Issue
Block a user