From f4c181608411d60293c836621dc90b9120e3a451 Mon Sep 17 00:00:00 2001 From: JaneYork <janeyork1314@163.com> Date: 星期五, 22 七月 2022 15:27:00 +0800 Subject: [PATCH] 主动设置文件公共读,适配天翼云OSS 主动设置文件公共读,适配天翼云OSS。 天翼云,即便bucket设置公共读,文件默认也是private,除非手动设置,详见天翼云:https://console.xstore.ctyun.cn/doc/store/sdk/java/objectOperation/putObject.html 已测试: 所有兼容S3协议的OSS,已测试:阿里云、腾讯云、百度、京东、天翼、自建Minio、七牛 --- ruoyi-oss/src/main/java/com/ruoyi/oss/properties/OssProperties.java | 61 ++++++++++++++++-------------- 1 files changed, 33 insertions(+), 28 deletions(-) diff --git a/ruoyi-oss/src/main/java/com/ruoyi/oss/properties/OssProperties.java b/ruoyi-oss/src/main/java/com/ruoyi/oss/properties/OssProperties.java index 48a478b..a017779 100644 --- a/ruoyi-oss/src/main/java/com/ruoyi/oss/properties/OssProperties.java +++ b/ruoyi-oss/src/main/java/com/ruoyi/oss/properties/OssProperties.java @@ -10,39 +10,44 @@ @Data public class OssProperties { - /** - * 鍩熷悕 - */ - private String endpoint; + /** + * 璁块棶绔欑偣 + */ + private String endpoint; - /** - * 鍓嶇紑 - */ - private String prefix; + /** + * 鑷畾涔夊煙鍚� + */ + private String domain; - /** - * ACCESS_KEY - */ - private String accessKey; + /** + * 鍓嶇紑 + */ + private String prefix; - /** - * SECRET_KEY - */ - private String secretKey; + /** + * ACCESS_KEY + */ + private String accessKey; - /** - * 瀛樺偍绌洪棿鍚� - */ - private String bucketName; + /** + * SECRET_KEY + */ + private String secretKey; - /** - * 瀛樺偍鍖哄煙 - */ - private String region; + /** + * 瀛樺偍绌洪棿鍚� + */ + private String bucketName; - /** - * 鏄惁https锛圷=鏄�,N=鍚︼級 - */ - private String isHttps; + /** + * 瀛樺偍鍖哄煙 + */ + private String region; + + /** + * 鏄惁https锛圷=鏄�,N=鍚︼級 + */ + private String isHttps; } -- Gitblit v1.9.3