This commit is contained in:
eson 2023-09-22 00:03:01 +08:00
parent bd1b6ee23e
commit 0b8f6e69cf

View File

@ -82,7 +82,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR
}
err = txUserInfo.
Where("guest_id = ? and module != 'clear' and module != 'temp' ", guestId).
Where("guest_id = ? and module != 'clear' and module != 'temp'", guestId).
UpdateColumn("user_id", userId).Error
logx.Info(err, "guest_id = ", guestId)
if err != nil && err != gorm.ErrRecordNotFound {
@ -221,6 +221,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
Utime: &now,
}
logx.Info("*uinfo.UserId", *uinfo.UserId)
err = txUserInfo.Where("module = 'profile' and user_id = ?", *uinfo.UserId).Take(nil).Error
// txUserInfo.Statement.Table