diff --git a/consume/dou_shen_user_register_for_official_consume.go b/consume/dou_shen_user_register_for_official_consume.go index f2bd336..8fd6c6a 100644 --- a/consume/dou_shen_user_register_for_official_consume.go +++ b/consume/dou_shen_user_register_for_official_consume.go @@ -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 } }