nacos config

This commit is contained in:
eson 2023-09-21 18:26:13 +08:00
parent 14f4f959d6
commit 68bd764c6e

View File

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