diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index cf53ec5..c3f3e00 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -143,7 +143,7 @@ func (*groupApp) AddMembers(ctx context.Context, userId, groupId int64, userIds if err != nil { return nil, err } - if imPackage.GroupNum <= int64(group.UserNum)+int64(len(userIds)) { + if imPackage.GroupNum < int64(group.UserNum)+int64(len(userIds)) { return nil, errors.New("群人员数量已满!") }