From 6e71fde6f575f8a38f98ee4b12770bf92c57d267 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Thu, 26 Oct 2023 17:36:49 +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/userlogosetlogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/home-user-auth/internal/logic/userlogosetlogic.go b/server/home-user-auth/internal/logic/userlogosetlogic.go index 6ea1586c..27b6a822 100644 --- a/server/home-user-auth/internal/logic/userlogosetlogic.go +++ b/server/home-user-auth/internal/logic/userlogosetlogic.go @@ -122,7 +122,7 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth return err } userMaterialInfo.Metadata = &metadataBUserMaterial - resUpdates := tx.Model(&gmodel.FsUserMaterial{}).Select("metadata", "ctime").Where("id = ?", req.LogoSelectedId).Updates(&userMaterialInfo) + resUpdates := tx.Model(&gmodel.FsUserMaterial{}).Select("metadata", "utime").Where("id = ?", req.LogoSelectedId).Updates(&userMaterialInfo) err = resUpdates.Error if err != nil { if err != gorm.ErrRecordNotFound { @@ -218,7 +218,7 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth } else { // 更新 userInfo.Utime = &nowTime - resUpdates := tx.Model(&gmodel.FsUserInfo{}).Select("metadata", "ctime").Where("id = ?", userInfo.Id).Updates(&userInfo) + resUpdates := tx.Model(&gmodel.FsUserInfo{}).Select("metadata", "utime").Where("id = ?", userInfo.Id).Updates(&userInfo) err = resUpdates.Error }