This commit is contained in:
wangchuxiao 2022-06-24 18:46:21 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent a7c7b5ce58
commit d98c9683e6

View File

@ -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())