From d93ede1c63de47a67584022b38086abd41f702d0 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 18 Nov 2022 17:59:41 +0800 Subject: [PATCH] update --- internal/business/comm/cloud_upload.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/business/comm/cloud_upload.go b/internal/business/comm/cloud_upload.go index d25a2a5..00b5b75 100644 --- a/internal/business/comm/cloud_upload.go +++ b/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) }