From 3d89985a08bc1a515110cf113186f53b69d6a296 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Mon, 30 Dec 2024 22:14:17 +0800 Subject: [PATCH] 1 --- 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 7fffe70..9ed0983 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -116,7 +116,7 @@ func (*groupApp) AddMembers(ctx context.Context, userId, groupId int64, userIds if err != nil { return nil, err } - if int64(group.UserNum)+int64(len(userIds)) >= 1000 { + if int64(group.UserNum)+int64(len(userIds)) > 1000 { return nil, errors.New("群人员数量已满!") }