From 89b511104030a3440dc508be4cdfdbddbe5c5d9a Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Thu, 7 Sep 2023 13:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/upload/internal/logic/uploadlogologic.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/upload/internal/logic/uploadlogologic.go b/server/upload/internal/logic/uploadlogologic.go index e242f3a2..062908c3 100644 --- a/server/upload/internal/logic/uploadlogologic.go +++ b/server/upload/internal/logic/uploadlogologic.go @@ -258,7 +258,10 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us } } } else { + var nowTime = time.Now().UTC() userInfo.Module = &module + userInfo.Ctime = &nowTime + userInfo.Utime = &nowTime resCreate := tx.Create(&userInfo) err = resCreate.Error if err != nil {