上传图片和附件路径调整为相对路径

This commit is contained in:
Vinjor 2024-09-14 18:41:19 +08:00
parent 158254b880
commit 90992c5990

View File

@ -108,7 +108,8 @@ public class S3FileClient extends AbstractFileClient<S3FileClientConfig> {
.stream(new ByteArrayInputStream(content), content.length, -1) // 文件内容
.build());
// 拼接返回路径
return config.getDomain() + "/" + path;
// return config.getDomain() + "/" + path;
return config.getBucket() + "/" + path;
}
@Override