From 68bd764c6ebc60c9450b0ba10f87f75a55801a2a Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Thu, 21 Sep 2023 18:26:13 +0800 Subject: [PATCH] nacos config --- model/gmodel/fs_user_logic.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index ef2fd642..8244cd98 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -68,6 +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") return err } @@ -76,13 +77,16 @@ 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") return err } err = txUserInfo. Where("guest_id = ?", guestId). UpdateColumn("user_id", userId).Error + if err != nil && err != gorm.ErrRecordNotFound { + logx.Error(err, "找到user_id1 afterDo") return err } } @@ -97,7 +101,6 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR if txUserInfo.Error != nil { txUserInfo = tx.Model(&FsUserInfo{}) } - logx.Error(err, "找到user_id1 afterDo") return afterDo(txRes, txUserMaterial, txUserInfo) } return nil