mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix bug
This commit is contained in:
parent
13498a5f95
commit
54589814f8
@ -116,19 +116,19 @@ func GetDepartmentGroupIDList(operationID, departmentID string) ([]string, error
|
|||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), resp)
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), resp)
|
||||||
return nil, errors.New(resp.ErrMsg)
|
return nil, errors.New(resp.ErrMsg)
|
||||||
}
|
}
|
||||||
|
return resp.ParentIDList, nil
|
||||||
resp.ParentIDList = append(resp.ParentIDList, departmentID)
|
//resp.ParentIDList = append(resp.ParentIDList, departmentID)
|
||||||
getDepartmentRelatedGroupIDListReq := organizationRpc.GetDepartmentRelatedGroupIDListReq{OperationID: operationID, DepartmentIDList: resp.ParentIDList}
|
//getDepartmentRelatedGroupIDListReq := organizationRpc.GetDepartmentRelatedGroupIDListReq{OperationID: operationID, DepartmentIDList: resp.ParentIDList}
|
||||||
getDepartmentParentIDListResp, err := client.GetDepartmentRelatedGroupIDList(context.Background(), &getDepartmentRelatedGroupIDListReq)
|
//getDepartmentParentIDListResp, err := client.GetDepartmentRelatedGroupIDList(context.Background(), &getDepartmentRelatedGroupIDListReq)
|
||||||
if err != nil {
|
//if err != nil {
|
||||||
log.NewError(operationID, utils.GetSelfFuncName(), err.Error(), getDepartmentRelatedGroupIDListReq.String())
|
// log.NewError(operationID, utils.GetSelfFuncName(), err.Error(), getDepartmentRelatedGroupIDListReq.String())
|
||||||
return nil, err
|
// return nil, err
|
||||||
}
|
//}
|
||||||
if getDepartmentParentIDListResp.ErrCode != 0 {
|
//if getDepartmentParentIDListResp.ErrCode != 0 {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), getDepartmentParentIDListResp)
|
// log.NewError(req.OperationID, utils.GetSelfFuncName(), getDepartmentParentIDListResp)
|
||||||
return nil, errors.New(getDepartmentParentIDListResp.ErrMsg)
|
// return nil, errors.New(getDepartmentParentIDListResp.ErrMsg)
|
||||||
}
|
//}
|
||||||
return getDepartmentParentIDListResp.GroupIDList, nil
|
//return getDepartmentParentIDListResp.GroupIDList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func joinGroups(operationID, userID, userName string, groupIDList []string) {
|
func joinGroups(operationID, userID, userName string, groupIDList []string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user