09-29-上传时间改为120秒,上传时删除原文件使用日志记录

This commit is contained in:
2025-09-29 15:19:51 +08:00
parent d644df94dc
commit 9fe3cd494f
2 changed files with 4 additions and 2 deletions

View File

@ -183,7 +183,7 @@ public class OssClient {
// 创建异步请求体length如果为空会报错
BlockingInputStreamAsyncRequestBody body = BlockingInputStreamAsyncRequestBody.builder()
.contentLength(length)
.subscribeTimeout(Duration.ofSeconds(30))
.subscribeTimeout(Duration.ofSeconds(120)) // 增加超时时间到120秒
.build();
// 使用 transferManager 进行上传