From 3e881345e5e8753c0886407a98bff8da9ae54f76 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 二月 2025 09:55:13 +0800
Subject: [PATCH] 还原

---
 ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java
index c5a32aa..e57afd1 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java
@@ -23,6 +23,7 @@
 import org.springframework.mock.web.MockMultipartFile;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
+import org.springframework.util.CollectionUtils;
 import org.springframework.web.multipart.MultipartFile;
 
 import java.io.IOException;
@@ -31,6 +32,7 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Objects;
 
 @Slf4j
 @Component
@@ -48,16 +50,10 @@
 
     @Scheduled(cron = "0 0/1 * * * ?")
     public void get() throws IOException {
-        System.out.println("鍚屾涓婁紶......");
-        log.info("鍚屾涓婁紶");
-        List<String> list = FtpApche.downloadList(ftpConfig);
-
-        if(list.size() == 0){
-            log.error("no files in ftp");
-            System.out.println("ftp get 0 fileinfo");
+        log.error("鍚屾浜掕仈缃戞枃浠�");
+        List<String> list = FtpApche.downloadList(this.ftpConfig);
+        if (list.size() == 0)
             return;
-        }
-        System.out.println("ftp get all fileinfo锛�" + list.get(0));
         for (String str : list) {
             String password = str.substring(0, 6);
             String fileName = str.substring(6, str.length());
@@ -69,7 +65,6 @@
             FtpApche.deleteFile(str);
             buildResultEntity(fileName, fileName.substring(14, fileName.length()), "minio", uploadResult, (MultipartFile)mockMultipartFile, password, fileBytesByName);
         }
-
     }
 
     @NotNull

--
Gitblit v1.8.0