fix
This commit is contained in:
parent
0b8f6e69cf
commit
7324aabbd6
|
@ -221,10 +221,9 @@ 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
|
||||||
|
logx.Info(err, "*uinfo.UserId", *uinfo.UserId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == gorm.ErrRecordNotFound {
|
if err == gorm.ErrRecordNotFound {
|
||||||
err = txUserInfo.Create(uinfo).Error
|
err = txUserInfo.Create(uinfo).Error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user