From 347b003d5adf8569e5c0999ab2fc3c94b0b6a7f9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 12 Jun 2023 20:51:21 +0800 Subject: [PATCH] update --- consume/dou_shen_user_register_for_official_consume.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 } }