From d98c9683e6dda449d284e4d00c3fb86ef21f77b2 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 24 Jun 2022 18:46:21 +0800 Subject: [PATCH] demo --- internal/demo/register/onboarding_process.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/demo/register/onboarding_process.go b/internal/demo/register/onboarding_process.go index ebad5a57b..8a5e6141c 100644 --- a/internal/demo/register/onboarding_process.go +++ b/internal/demo/register/onboarding_process.go @@ -69,11 +69,7 @@ func createOrganizationUser(operationID, userID, userName string) error { OpUserID: userID, IsRegister: false, } - if strings.Contains("@", userID) { - req.OrganizationUser.Email = userID - } else { - req.OrganizationUser.Telephone = userID - } + resp, err := client.CreateOrganizationUser(context.Background(), req) if err != nil { log.NewError(operationID, utils.GetSelfFuncName(), err.Error())