mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
demo
This commit is contained in:
parent
a7c7b5ce58
commit
d98c9683e6
@ -69,11 +69,7 @@ func createOrganizationUser(operationID, userID, userName string) error {
|
|||||||
OpUserID: userID,
|
OpUserID: userID,
|
||||||
IsRegister: false,
|
IsRegister: false,
|
||||||
}
|
}
|
||||||
if strings.Contains("@", userID) {
|
|
||||||
req.OrganizationUser.Email = userID
|
|
||||||
} else {
|
|
||||||
req.OrganizationUser.Telephone = userID
|
|
||||||
}
|
|
||||||
resp, err := client.CreateOrganizationUser(context.Background(), req)
|
resp, err := client.CreateOrganizationUser(context.Background(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(operationID, utils.GetSelfFuncName(), err.Error())
|
log.NewError(operationID, utils.GetSelfFuncName(), err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user