bugfix: S3 客服端 VirtualStyle 判断逻辑错误

This commit is contained in:
YunaiV 2024-08-23 20:01:32 +08:00
parent 4e1d7d0877
commit 02562cb77d

View File

@ -91,7 +91,7 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
* 开启 VirtualStyle 模式 * 开启 VirtualStyle 模式
*/ */
private void enableVirtualStyleEndpoint() { private void enableVirtualStyleEndpoint() {
if (StrUtil.containsAll(config.getEndpoint(), if (StrUtil.containsAny(config.getEndpoint(),
S3FileClientConfig.ENDPOINT_TENCENT, // 腾讯云 https://cloud.tencent.com/document/product/436/41284 S3FileClientConfig.ENDPOINT_TENCENT, // 腾讯云 https://cloud.tencent.com/document/product/436/41284
S3FileClientConfig.ENDPOINT_VOLCES)) { // 火山云 https://www.volcengine.com/docs/6349/1288493 S3FileClientConfig.ENDPOINT_VOLCES)) { // 火山云 https://www.volcengine.com/docs/6349/1288493
client.enableVirtualStyleEndpoint(); client.enableVirtualStyleEndpoint();