瀏覽代碼

update

master
DengBiao 2 年之前
父節點
當前提交
d93ede1c63
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      internal/business/comm/cloud_upload.go

+ 6
- 1
internal/business/comm/cloud_upload.go 查看文件

@@ -2,6 +2,7 @@ package app

import (
"context"
"fmt"
svc "gim/internal/business/comm/service"
"gim/pkg/grpclib"
)
@@ -15,6 +16,10 @@ func (*cloudUpload) FileReqUpload(ctx context.Context, uid, dirName, fName strin
masterId, _ := grpclib.GetCtxMasterId(ctx)

callbackUrl := svc.SysCfgGet("-1", "cloud_file_upload_call_back_url")
callbackUrl = callbackUrl + masterId
fileBucketHost := svc.SysCfgGet("-1", "file_bucket_host")
fileBucketScheme := svc.SysCfgGet("-1", "file_bucket_scheme")

callbackUrl = fmt.Sprintf(callbackUrl, masterId, fileBucketHost, fileBucketScheme)

return svc.FileReqUpload(ctx, uid, dirName, fName, callbackUrl, fSize)
}

Loading…
取消
儲存