pull/455/head
wangchuxiao 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 54589814f8
commit 439110f95b

@ -143,7 +143,7 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
GroupID: groupID, GroupID: groupID,
Reason: "register auto join", Reason: "register auto join",
InvitedUserIDList: []string{userID}, InvitedUserIDList: []string{userID},
OpUserID: userID, OpUserID: config.Config.Manager.AppManagerUid[0],
} }
resp, err := client.InviteUserToGroup(context.Background(), req) resp, err := client.InviteUserToGroup(context.Background(), req)
if err != nil { if err != nil {

@ -261,7 +261,7 @@ func GetDepartmentParent(departmentID string, dbConn *gorm.DB, parentIDList *[]s
if err != nil { if err != nil {
return err return err
} }
if department.ParentID != "" { if department.DepartmentID != "" {
*parentIDList = append(*parentIDList, department.ParentID) *parentIDList = append(*parentIDList, department.ParentID)
err = GetDepartmentParent(departmentID, dbConn, parentIDList) err = GetDepartmentParent(departmentID, dbConn, parentIDList)
if err != nil { if err != nil {

Loading…
Cancel
Save