reset 回滚错误合并

This commit is contained in:
疯狂的狮子li 2022-07-18 11:55:52 +08:00
parent 369e4be31c
commit 6f83ed3285

View File

@ -119,12 +119,12 @@ public class OssClient {
}
public String getUrl() {
String header = OssConstant.IS_HTTPS.equals(properties.getIsHttps()) ? "https://" : "http://";
String domain = properties.getDomain();
if (StringUtils.isNotBlank(domain)) {
return header + domain;
return domain;
}
String endpoint = properties.getEndpoint();
String header = OssConstant.IS_HTTPS.equals(properties.getIsHttps()) ? "https://" : "http://";
// 云服务商直接返回
if (StringUtils.containsAny(endpoint, OssConstant.CLOUD_SERVICE)){
return header + properties.getBucketName() + "." + endpoint;