From bbde8cdb2a12e6ddb11ccefd332cdec528c485c6 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 27 Feb 2024 11:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zcloud/util/Warden.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/zcloud/util/Warden.java b/src/main/java/com/zcloud/util/Warden.java index eb23c46b..902003c4 100644 --- a/src/main/java/com/zcloud/util/Warden.java +++ b/src/main/java/com/zcloud/util/Warden.java @@ -380,6 +380,8 @@ public class Warden { String fileName = file.getName(); if (fileNames.contains(fileName)){ fileName = (random.nextInt(90000) + 10000) + fileName; + } else { + fileNames = fileNames + fileName + ","; } ZipEntry zipEntry = new ZipEntry(fileName); zipOut.putNextEntry(zipEntry);