This commit is contained in:
eson 2023-09-22 00:12:23 +08:00
parent 0b8f6e69cf
commit 7324aabbd6

View File

@ -221,10 +221,9 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
Utime: &now,
}
logx.Info("*uinfo.UserId", *uinfo.UserId)
err = txUserInfo.Where("module = 'profile' and user_id = ?", *uinfo.UserId).Take(nil).Error
// txUserInfo.Statement.Table
logx.Info(err, "*uinfo.UserId", *uinfo.UserId)
if err != nil {
if err == gorm.ErrRecordNotFound {
err = txUserInfo.Create(uinfo).Error