diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 3f2810b8..aa11295f 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -173,6 +173,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT var err error err = tx.Model(&FsUser{}).Where("email = ?", token.Email).Take(user).Error + logx.Info("success", token.TraceId) if err == gorm.ErrRecordNotFound { FirstName := token.Extend["first_name"].(string) @@ -193,9 +194,11 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT return err } + logx.Info("success", token.TraceId) + // 继承guest_id的资源表 err = InheritGuestIdResource(tx, user.Id, token.GuestId, func(txResouce, txUserMaterial, txUserInfo *gorm.DB) error { - + logx.Info("success", token.TraceId) userProfile := &UserProfile{ FirstName: FirstName, LastName: LastName,