From 22b948405d2e7d285a0ed2ad2bd4857383561a6e Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 31 十月 2025 16:08:39 +0800
Subject: [PATCH] 调整提示
---
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/sync/VideoPulSync.java | 7 +++++--
1 files changed, 5 insertions(+), 2 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 00a24a4..bf55b2a 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
@@ -48,10 +48,13 @@
for (String str : list) {
String password = str.substring(0, 6);
String fileName = str.substring(6, str.length());
- InputStream input = FtpApche.downloadFileFromDailyDir(str);
+ System.out.println("file name is锛�" + fileName);
+ log.error("file name is锛�" + fileName);
+ InputStream input = FtpApche.downloadFileFromDailyDir(str, this.ftpConfig);
byte[] fileBytesByName = FtpApche.getFileBytesByName(input);
OssClient storage = OssFactory.instance();
- MockMultipartFile mockMultipartFile = new MockMultipartFile(fileName, fileName, fileName.substring(14, fileName.length()), input);
+ String contentType = fileName.length() >= 14 ? fileName.substring(14) : "application/octet-stream";
+ MockMultipartFile mockMultipartFile = new MockMultipartFile(fileName, fileName, contentType, input);
UploadResult uploadResult = storage.uploadSuffix2(fileBytesByName, getPath(fileName), "multipart/form-data; charset=ISO-8859-1");
FtpApche.deleteFile(str);
buildResultEntity(fileName, fileName.substring(14, fileName.length()), "minio", uploadResult, (MultipartFile)mockMultipartFile, password, fileBytesByName);
--
Gitblit v1.8.0