From 79b1a801b5f7a414295649679cdbd8795b814143 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 87ac49981..38a0d44e9 100644 --- a/internal/demo/register/onboarding_process.go +++ b/internal/demo/register/onboarding_process.go @@ -72,11 +72,7 @@ func createOrganizationUser(operationID, userID, userName, phoneNumber, email st OpUserID: config.Config.Manager.AppManagerUid[0], 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())