diff --git a/cv/group_cv/group.go b/cv/group_cv/group.go index 612840c2059af7cd96b3b59ab9d950e630efb564..d7153770f8ca5c82460d8e767ba704a71ae22f98 100644 --- a/cv/group_cv/group.go +++ b/cv/group_cv/group.go @@ -266,6 +266,9 @@ func BuildJoinedGroupInfo(myService *domain.Service, myUserId uint64, originGrou } } } + if len(groupIds) <= 0 { + return nil, 0, nil + } // todo: 可以移到后面,减小查询范围,因为roomMicUserMap不影响排序 roomMicUserMap, err := group_m.BatchGetAllMicUser(model, groupIds)