|
@@ -60,7 +60,7 @@ func (this *ResourceController) Upload() {
|
|
|
}
|
|
|
resourceUrl := ``
|
|
|
//上传到阿里云 和 minio
|
|
|
- if utils.Object_Storage_Client == "minio" {
|
|
|
+ if utils.ObjectStorageClient == "minio" {
|
|
|
resourceUrl, err = services.UploadImgToMinIo(fileName, fpath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|
|
@@ -241,7 +241,7 @@ func (this *ResourceController) VideoUpload() {
|
|
|
savePath += fileName
|
|
|
|
|
|
//上传到阿里云 和 minio
|
|
|
- if utils.Object_Storage_Client == "minio" {
|
|
|
+ if utils.ObjectStorageClient == "minio" {
|
|
|
err = services.UploadVideoToMinIo(fileName, fpath, savePath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|
|
@@ -415,7 +415,7 @@ func (this *ResourceController) VoiceUpload() {
|
|
|
savePath := utils.Upload_Audio_Dir + time.Now().Format("200601/20060102/")
|
|
|
savePath += fileName
|
|
|
//上传到阿里云 和 minio
|
|
|
- if utils.Object_Storage_Client == "minio" {
|
|
|
+ if utils.ObjectStorageClient == "minio" {
|
|
|
err = services.UploadVideoToMinIo(fileName, fpath, savePath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|
|
@@ -577,7 +577,7 @@ func (this *ResourceController) UploadImageBase64() {
|
|
|
savePath += fileName
|
|
|
|
|
|
//上传到阿里云 和 minio
|
|
|
- if utils.Object_Storage_Client == "minio" {
|
|
|
+ if utils.ObjectStorageClient == "minio" {
|
|
|
err = services.UploadFileToMinIo(fileName, fpath, savePath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|
|
@@ -718,7 +718,7 @@ func (this *ResourceController) UploadV2() {
|
|
|
}
|
|
|
resourceUrl := ``
|
|
|
//上传到阿里云 和 minio
|
|
|
- if utils.Object_Storage_Client == "minio" {
|
|
|
+ if utils.ObjectStorageClient == "minio" {
|
|
|
resourceUrl, err = services.UploadImgToMinIo(fileName, fpath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|