From d5221a6988e174a9c8b7d94777718bcdfc452e9c Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Sat, 27 Feb 2021 10:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=B3=BB=E7=BB=9F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=20tencent-cos=20aliyun-oss=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/utils/upload/upload.go | 2 +- web/src/view/systemTools/system/system.vue | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/server/utils/upload/upload.go b/server/utils/upload/upload.go index 77cd42ce..e71af0e5 100644 --- a/server/utils/upload/upload.go +++ b/server/utils/upload/upload.go @@ -30,7 +30,7 @@ func NewOss() OSS { return &Qiniu{} case "tencent-cos": return &TencentCOS{} - case "aliyun-cos": + case "aliyun-oss": return &AliyunOSS{} default: return &Local{} diff --git a/web/src/view/systemTools/system/system.vue b/web/src/view/systemTools/system/system.vue index 0591b17f..bdefb59f 100644 --- a/web/src/view/systemTools/system/system.vue +++ b/web/src/view/systemTools/system/system.vue @@ -21,6 +21,8 @@ + + @@ -256,6 +258,45 @@ 开启 + + + @@ -282,6 +323,8 @@ export default { sqlite: {}, redis: {}, qiniu: {}, + tencentCOS:{}, + aliyunOSS:{}, captcha: {}, zap: {}, local: {},