Commit 51968c4c198870c880c126406cba00fcc438c4c3

Authored by YunaiV
1 parent 078ead53

🐛 腾讯云上传 bug

yudao-framework/yudao-spring-boot-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/client/s3/S3FileClient.java
@@ -81,7 +81,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> { @@ -81,7 +81,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
81 } 81 }
82 // 腾讯云必须有 region,否则会报错 82 // 腾讯云必须有 region,否则会报错
83 if (config.getEndpoint().contains(ENDPOINT_TENCENT)) { 83 if (config.getEndpoint().contains(ENDPOINT_TENCENT)) {
84 - return StrUtil.subAfter(config.getEndpoint(), ".cos.", false) 84 + return StrUtil.subAfter(config.getEndpoint(), "cos.", false)
85 .replaceAll("." + ENDPOINT_TENCENT, ""); // 去除 Endpoint 85 .replaceAll("." + ENDPOINT_TENCENT, ""); // 去除 Endpoint
86 } 86 }
87 return null; 87 return null;