fix:upload设置

This commit is contained in:
momo 2023-10-26 15:08:41 +08:00
parent c8f2f1346d
commit 850c8f0d39

View File

@ -209,9 +209,6 @@ func (upload *Upload) UploadFileByByte(req *UploadBaseReq) (*UploadBaseRes, erro
upload.AwsSession.Config.Region = aws.String("us-west-1") upload.AwsSession.Config.Region = aws.String("us-west-1")
} }
// 设置AWS会话的区域
upload.AwsSession.Config.Region = aws.String("us-west-1")
// 创建新的S3服务实例 // 创建新的S3服务实例
svc := s3.New(upload.AwsSession) svc := s3.New(upload.AwsSession)