mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
阿里云OSS解析region时兼容带https的配置
This commit is contained in:
parent
6b79788b5a
commit
93135363c6
@ -75,7 +75,8 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
|
|||||||
// 阿里云必须有 region,否则会报错
|
// 阿里云必须有 region,否则会报错
|
||||||
if (config.getEndpoint().contains(ENDPOINT_ALIYUN)) {
|
if (config.getEndpoint().contains(ENDPOINT_ALIYUN)) {
|
||||||
return StrUtil.subBefore(config.getEndpoint(), '.', false)
|
return StrUtil.subBefore(config.getEndpoint(), '.', false)
|
||||||
.replaceAll("-internal", ""); // 去除内网 Endpoint 的后缀
|
.replaceAll("-internal", "")// 去除内网 Endpoint 的后缀
|
||||||
|
.replaceAll("https://", "");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user