nacos config

This commit is contained in:
eson 2023-09-21 18:53:04 +08:00
parent f2fc0a35f6
commit dc489b1ca3

View File

@ -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