李昊 4 years ago
parent
commit
1013935e37

+ 1 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Group/GroupService.cs

@@ -138,6 +138,7 @@ namespace GxPress.Service.Implement.Group
         /// <returns></returns>
         public async Task<bool> InsertsAsync(GroupUserInRequest request)
         {
+            request.UserIds = request.UserIds.Distinct().ToList();
             //获取当前小组
             var group = await _groupRepository.GetAsync(request.GroupId);
             //不是管理员添加