DengBiao 1 år sedan
förälder
incheckning
347b003d5a
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. +2
    -4
      consume/dou_shen_user_register_for_official_consume.go

+ 2
- 4
consume/dou_shen_user_register_for_official_consume.go Visa fil

@@ -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
}
}



Laddar…
Avbryt
Spara