Browse Source

update

master
DengBiao 11 months ago
parent
commit
c5e7028e21
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      internal/logic/app/group_app.go

+ 2
- 2
internal/logic/app/group_app.go View File

@@ -143,8 +143,8 @@ func (*groupApp) AddMembers(ctx context.Context, userId, groupId int64, userIds
if err != nil { if err != nil {
return nil, err return nil, err
} }
if imPackage.GroupNum <= int64(group.UserNum) {
return nil, errors.New("群人员数量已满!")
if imPackage.GroupNum <= int64(group.UserNum)+int64(len(userIds)) {
return nil, errors.New("群人员数量已满")
} }


existIds, addedIds, err := group.AddMembers(ctx, userIds) existIds, addedIds, err := group.AddMembers(ctx, userIds)


Loading…
Cancel
Save