修复判断是否下载完成逻辑错误

This commit is contained in:
chuzhongzai 2025-08-29 16:16:59 +08:00
parent df6c39ba56
commit c84f11cd8f

View File

@ -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;
}
}