Commit 93135363c6e2ef408c6ddced1d7efaf352ef9c20
1 parent
6b79788b
阿里云OSS解析region时兼容带https的配置
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/client/s3/S3FileClient.java
| ... | ... | @@ -75,7 +75,8 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> { |
| 75 | 75 | // 阿里云必须有 region,否则会报错 |
| 76 | 76 | if (config.getEndpoint().contains(ENDPOINT_ALIYUN)) { |
| 77 | 77 | return StrUtil.subBefore(config.getEndpoint(), '.', false) |
| 78 | - .replaceAll("-internal", ""); // 去除内网 Endpoint 的后缀 | |
| 78 | + .replaceAll("-internal", "")// 去除内网 Endpoint 的后缀 | |
| 79 | + .replaceAll("https://", ""); | |
| 79 | 80 | } |
| 80 | 81 | return null; |
| 81 | 82 | } | ... | ... |