From 850c8f0d395144e7c3cfc83e7f5d97b313ba9844 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Thu, 26 Oct 2023 15:08:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:upload=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/file/upload.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/utils/file/upload.go b/utils/file/upload.go index 2a2816b2..c55a6699 100644 --- a/utils/file/upload.go +++ b/utils/file/upload.go @@ -209,9 +209,6 @@ func (upload *Upload) UploadFileByByte(req *UploadBaseReq) (*UploadBaseRes, erro upload.AwsSession.Config.Region = aws.String("us-west-1") } - // 设置AWS会话的区域 - upload.AwsSession.Config.Region = aws.String("us-west-1") - // 创建新的S3服务实例 svc := s3.New(upload.AwsSession)