Browse Source

update

three
DengBiao 1 year ago
parent
commit
347b003d5a
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      consume/dou_shen_user_register_for_official_consume.go

+ 2
- 4
consume/dou_shen_user_register_for_official_consume.go View File

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




Loading…
Cancel
Save