mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 10:37:41 +08:00 
			
		
		
		
	阿里云OSS解析region时兼容带https的配置
This commit is contained in:
		| @ -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; | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 huangyemin
					huangyemin