From dc489b1ca3a8feead547cfcf286f554a5d2f7887 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Thu, 21 Sep 2023 18:53:04 +0800 Subject: [PATCH] nacos config --- model/gmodel/fs_user_logic.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 8244cd98..3f2810b8 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -68,7 +68,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR Where("guest_id = ?", guestId). UpdateColumn("user_id", userId).Error if err != nil && err != gorm.ErrRecordNotFound { - logx.Error(err, "找到user_id1 afterDo") + logx.Info(err, "找到user_id1 afterDo") return err } @@ -77,7 +77,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR UpdateColumn("user_id", userId).Error if err != nil && err != gorm.ErrRecordNotFound { - logx.Error(err, "找到user_id1 afterDo") + logx.Info(err, "找到user_id1 afterDo") return err } @@ -86,7 +86,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR UpdateColumn("user_id", userId).Error if err != nil && err != gorm.ErrRecordNotFound { - logx.Error(err, "找到user_id1 afterDo") + logx.Info(err, "找到user_id1 afterDo") return err } } @@ -220,7 +220,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT err = txUserInfo.Where("module = 'profile' and user_id = ?", uinfo.UserId).Take(nil).Error // txUserInfo.Statement.Table - logx.Error(err, "找到user_id1") + logx.Info(err, "找到user_id1") if err != nil { if err == gorm.ErrRecordNotFound { err = txUserInfo.Create(uinfo).Error @@ -229,7 +229,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT } } } else { - logx.Error("找到user_id2") + logx.Info("找到user_id2") err = fssql.MetadataModulePATCH(txUserInfo, "profile", FsUserInfo{}, metadata, "user_id = ?", *uinfo.UserId) if err != nil { return err