From c84f11cd8f436580cfac4ec2e1e4425b91d054cf Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Fri, 29 Aug 2025 16:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=8B=E8=BD=BD=E5=AE=8C=E6=88=90=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/lion/Service/DownloadCheckService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/lion/Service/DownloadCheckService.java b/src/main/java/lion/Service/DownloadCheckService.java index 03e9c75..8d0c844 100644 --- a/src/main/java/lion/Service/DownloadCheckService.java +++ b/src/main/java/lion/Service/DownloadCheckService.java @@ -147,7 +147,7 @@ public class DownloadCheckService { */ public boolean addToQueue(GalleryTask galleryTask){ //是否含有名字,进行中任务一般有名字,没有名字则肯定为初始任务,存在名字至少在下载路径出现过 - if(galleryTask.getName() == null || !galleryTask.getName().isEmpty()){ + if(galleryTask.getName() == null || galleryTask.getName().isEmpty()){ queue.putIfAbsent(galleryTask.getGid(), galleryTask); return false; } @@ -168,7 +168,7 @@ public class DownloadCheckService { //异常情况,发送通知 - CustomUtil.notifyMe(String.format("任务:%s存在名字,但是下载路径为空且不存在压缩包", galleryTask.getName() )); + CustomUtil.notifyMe(String.format("任务:%s存在名字,但是下载路径为空且不存在压缩包", galleryTask.getName())); return false; } }