pull/91/head
YunaiV 2023-12-30 11:21:38 +08:00
commit 4cb68f24b7
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
} }
// 腾讯云必须有 region否则会报错 // 腾讯云必须有 region否则会报错
if (config.getEndpoint().contains(ENDPOINT_TENCENT)) { if (config.getEndpoint().contains(ENDPOINT_TENCENT)) {
return StrUtil.subAfter(config.getEndpoint(), ".cos.", false) return StrUtil.subAfter(config.getEndpoint(), "cos.", false)
.replaceAll("." + ENDPOINT_TENCENT, ""); // 去除 Endpoint .replaceAll("." + ENDPOINT_TENCENT, ""); // 去除 Endpoint
} }
return null; return null;