From f2ac76666299407545fb733f0d21f6e8cfe538a3 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 八月 2025 09:27:40 +0800
Subject: [PATCH] 优化

---
 server/src/main/java/com/doumee/core/utils/FtpUtil.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/src/main/java/com/doumee/core/utils/FtpUtil.java b/server/src/main/java/com/doumee/core/utils/FtpUtil.java
index b58fd38..8fbf0b0 100644
--- a/server/src/main/java/com/doumee/core/utils/FtpUtil.java
+++ b/server/src/main/java/com/doumee/core/utils/FtpUtil.java
@@ -67,6 +67,8 @@
 //            	LOCAL_CHARSET = "UTF-8";
 //			}
 			ftpClient.setControlEncoding("GBK");
+			ftpClient.setConnectTimeout(10*60*1000);
+			ftpClient.setDataTimeout(10*60*1000);
 			ftpClient.enterLocalPassiveMode();
 			int replyCode = ftpClient.getReplyCode(); //鏄惁鎴愬姛鐧诲綍鏈嶅姟鍣�
 			if(!FTPReply.isPositiveCompletion(replyCode)){

--
Gitblit v1.9.3