mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 修改 oss 客户端自定义域名 统一使用https开关控制协议头
This commit is contained in:
		@@ -125,13 +125,13 @@ public class OssClient {
 | 
			
		||||
        // 云服务商直接返回
 | 
			
		||||
        if (StringUtils.containsAny(endpoint, OssConstant.CLOUD_SERVICE)){
 | 
			
		||||
            if (StringUtils.isNotBlank(domain)) {
 | 
			
		||||
                return domain;
 | 
			
		||||
                return header + domain;
 | 
			
		||||
            }
 | 
			
		||||
            return header + properties.getBucketName() + "." + endpoint;
 | 
			
		||||
        }
 | 
			
		||||
        // minio 单独处理
 | 
			
		||||
        if (StringUtils.isNotBlank(domain)) {
 | 
			
		||||
            return domain + "/" + properties.getBucketName();
 | 
			
		||||
            return header + domain + "/" + properties.getBucketName();
 | 
			
		||||
        }
 | 
			
		||||
        return header + endpoint + "/" + properties.getBucketName();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user