fix
This commit is contained in:
parent
e6470719bb
commit
b37c2094ed
|
@ -226,7 +226,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
|
|||
logx.Info(err, "*uinfo.UserId", *uinfo.UserId)
|
||||
if err != nil {
|
||||
if err == gorm.ErrRecordNotFound {
|
||||
err = txUserInfo.Model(FsUserInfo{}).Create(uinfo).Error
|
||||
err = txUserInfo.Model(&FsUserInfo{}).Create(uinfo).Error
|
||||
logx.Info(err, "*uinfo.UserId", *uinfo.UserId)
|
||||
if err == gorm.ErrRecordNotFound {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user