fix
This commit is contained in:
parent
b37c2094ed
commit
c280a661a1
|
@ -227,7 +227,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == gorm.ErrRecordNotFound {
|
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)
|
logx.Info(err, "*uinfo.UserId:", *uinfo.UserId, " ", uinfo.Id)
|
||||||
if err == gorm.ErrRecordNotFound {
|
if err == gorm.ErrRecordNotFound {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user