diff --git a/model/gmodel/fs_user_logic.go b/model/gmodel/fs_user_logic.go index 55d14072..f331bec8 100644 --- a/model/gmodel/fs_user_logic.go +++ b/model/gmodel/fs_user_logic.go @@ -196,14 +196,13 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT if err == gorm.ErrRecordNotFound { return nil } - return err - } return fmt.Errorf("the email had registered") }) + logcontent += "end" if err != nil && err != gorm.ErrRecordNotFound { return nil, err }