From 6d8401d3e072abb2864d86d00302a5b7d2dda7f2 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Thu, 26 Oct 2023 15:50:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:upload=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/home-user-auth/internal/logic/userlogodatasetlogic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/home-user-auth/internal/logic/userlogodatasetlogic.go b/server/home-user-auth/internal/logic/userlogodatasetlogic.go index 5f42a49c..a8e34190 100644 --- a/server/home-user-auth/internal/logic/userlogodatasetlogic.go +++ b/server/home-user-auth/internal/logic/userlogodatasetlogic.go @@ -76,6 +76,7 @@ func (l *UserLogoDataSetLogic) UserLogoDataSet(req *types.UserLogoDataSetReq, us GuestId: &guestId, ResourceId: &resourceId, ResourceUrl: logoData.ResourceUrl, + Metadata: logoData.Metadata, Ctime: &nowTime, } resCreate := l.svcCtx.MysqlConn.Create(&materialInfo) @@ -93,7 +94,7 @@ func (l *UserLogoDataSetLogic) UserLogoDataSet(req *types.UserLogoDataSetReq, us "guest_id": materialInfo.GuestId, "resource_id": materialInfo.ResourceId, "resource_url": materialInfo.ResourceUrl, - "metadata": nil, + "metadata": materialInfo.Metadata, "ctime": materialInfo.Ctime, "resource_info": nil, })