From b37c2094ede0bf58decbd3cb366c516589bd4f7f Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Fri, 22 Sep 2023 00:28:35 +0800 Subject: [PATCH] fix --- model/gmodel/fs_user_logic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 8faae14b..508cff3e 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -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