|
@@ -409,7 +409,11 @@ func (m *MinioOss) UploadFile(fileName, filePath, savePath string) (string, erro
|
|
|
}
|
|
|
|
|
|
ctx := context.Background()
|
|
|
+ // 此处兼容一下前后端endpoint不一致的情况, 前端用minio_endpoint后端用minio_back_endpoint, minio_back_endpoint为空则都取前者
|
|
|
endpoint := utils.MinIoEndpoint
|
|
|
+ if utils.MinIoBackEndpoint != "" {
|
|
|
+ endpoint = utils.MinIoBackEndpoint
|
|
|
+ }
|
|
|
accessKeyID := utils.MinIoAccessKeyId
|
|
|
secretAccessKey := utils.MinIoAccessKeySecret
|
|
|
useSSL := false
|