!276 阿里云OSS解析region时兼容带https的配置

Merge pull request !276 from huangyemin/master
This commit is contained in:
芋道源码
2022-11-12 02:23:25 +00:00
committed by Gitee
4 changed files with 25 additions and 22 deletions

View File

@ -75,7 +75,8 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
// 阿里云必须有 region否则会报错
if (config.getEndpoint().contains(ENDPOINT_ALIYUN)) {
return StrUtil.subBefore(config.getEndpoint(), '.', false)
.replaceAll("-internal", ""); // 去除内网 Endpoint 的后缀
.replaceAll("-internal", "")// 去除内网 Endpoint 的后缀
.replaceAll("https://", "");
}
return null;
}