fix
This commit is contained in:
parent
bd1b6ee23e
commit
0b8f6e69cf
@ -82,7 +82,7 @@ func InheritGuestIdResource(tx *gorm.DB, userId, guestId int64, afterDo func(txR
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = txUserInfo.
|
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
|
UpdateColumn("user_id", userId).Error
|
||||||
logx.Info(err, "guest_id = ", guestId)
|
logx.Info(err, "guest_id = ", guestId)
|
||||||
if err != nil && err != gorm.ErrRecordNotFound {
|
if err != nil && err != gorm.ErrRecordNotFound {
|
||||||
@ -221,6 +221,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
|
|||||||
Utime: &now,
|
Utime: &now,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logx.Info("*uinfo.UserId", *uinfo.UserId)
|
||||||
err = txUserInfo.Where("module = 'profile' and user_id = ?", *uinfo.UserId).Take(nil).Error
|
err = txUserInfo.Where("module = 'profile' and user_id = ?", *uinfo.UserId).Take(nil).Error
|
||||||
// txUserInfo.Statement.Table
|
// txUserInfo.Statement.Table
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user