From 35e9a1e0a968614d3d799d5dbca5a2e656340c37 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 9 Dec 2023 18:04:49 +0800 Subject: [PATCH] update --- internal/logic/app/group_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("群人员数量已满!") }