Bug:S3路径风格读取错误

This commit is contained in:
MarSeventh
2025-06-19 22:45:48 +08:00
parent 8387bbe822
commit e826149a82
3 changed files with 3 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ async function moveS3File(img, newFileId) {
accessKeyId: img.metadata?.S3AccessKeyId,
secretAccessKey: img.metadata?.S3SecretAccessKey
},
forcePathStyle: img.metadata?.S3PathStyle === 'true' // 是否启用路径风格
forcePathStyle: img.metadata?.S3PathStyle || false // 是否启用路径风格
});
const bucketName = img.metadata?.S3BucketName;