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-system/pom.xml | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/pom.xml b/ruoyi-system/pom.xml index 37b57de..9e49b71 100644 --- a/ruoyi-system/pom.xml +++ b/ruoyi-system/pom.xml @@ -5,7 +5,7 @@ <parent> <artifactId>ruoyi-vue-plus</artifactId> <groupId>com.ruoyi</groupId> - <version>2.4.0</version> + <version>4.2.0</version> </parent> <modelVersion>4.0.0</modelVersion> @@ -23,6 +23,18 @@ <artifactId>ruoyi-common</artifactId> </dependency> + <!-- OSS鍔熻兘妯″潡 --> + <dependency> + <groupId>com.ruoyi</groupId> + <artifactId>ruoyi-oss</artifactId> + </dependency> + + <!-- SMS鍔熻兘妯″潡 --> + <dependency> + <groupId>com.ruoyi</groupId> + <artifactId>ruoyi-sms</artifactId> + </dependency> + </dependencies> </project> -- Gitblit v1.9.3