This commit is contained in:
eson 2023-09-22 00:35:10 +08:00
parent c280a661a1
commit 99f785a7c3

View File

@ -226,7 +226,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
logx.Info(err, "*uinfo.UserId", *uinfo.UserId) logx.Info(err, "*uinfo.UserId", *uinfo.UserId)
if err != nil { if err != nil {
if err == gorm.ErrRecordNotFound { if err == gorm.ErrRecordNotFound {
err = txUserInfo.Model(&FsUserInfo{}).Create(uinfo).Error err = tx.Model(&FsUserInfo{}).Create(uinfo).Error
logx.Info(err, "*uinfo.UserId:", *uinfo.UserId, " ", uinfo.Id) logx.Info(err, "*uinfo.UserId:", *uinfo.UserId, " ", uinfo.Id)
if err == gorm.ErrRecordNotFound { if err == gorm.ErrRecordNotFound {
return nil return nil