|
|
@@ -122,15 +122,13 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { |
|
|
|
} |
|
|
|
for _, group := range *officialGroups { |
|
|
|
//统计当前群有多少人 |
|
|
|
userGroups, err := db2.GroupUserFindByParams(db.ImDb, map[string]interface{}{ |
|
|
|
userGroups, _ := db2.GroupUserFindByParams(db.ImDb, map[string]interface{}{ |
|
|
|
"key": "group_id", |
|
|
|
"value": group.GroupId, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
if len(*userGroups) < 500 { |
|
|
|
officialGroup = &group |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|