From 20fb2b3baaa39cf34f7d62b588ef7f3f1854c52c Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Sat, 24 Sep 2022 20:11:03 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E5=88=A0=E9=99=A4=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zfile/module/storage/service/impl/LocalServiceImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java index 7fef920..deaa65f 100644 --- a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java +++ b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/LocalServiceImpl.java @@ -4,7 +4,6 @@ import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.core.io.FileUtil; import cn.hutool.core.io.IoUtil; import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.StrUtil; import im.zhaojun.zfile.core.constant.ZFileConstant; import im.zhaojun.zfile.core.exception.file.init.InitializeStorageSourceException; @@ -117,10 +116,6 @@ public class LocalServiceImpl extends AbstractProxyTransferService { @Override public boolean deleteFile(String path, String name) { - log.error("删除文件: {}", path + name); - if (RandomUtil.randomBoolean()) { - throw new RuntimeException("模拟删除失败"); - } String fullPath = StringUtils.concat(param.getFilePath(), path, name); return FileUtil.del(fullPath); }