李昊 4 年之前
父节点
当前提交
8533634f76

+ 0 - 2
GxPress/Repository/GxPress.Repository.Implement/ArticleGroupRepository.cs

@@ -64,8 +64,6 @@ namespace GxPress.Repository.Implement
             var list = new List<ArticleGroupUserListResult>();
             foreach (var item in result)
             {
-                if (item.IsSystemDefault)
-                    item.Id = 0;
                 list.Add(new ArticleGroupUserListResult() { Id = item.Id, UserId = userId, ArticleGroupId = item.Id, ArticleGroupName = item.Name, IsSystemDefault = item.IsSystemDefault });
             }
             return list;

+ 1 - 1
GxPress/Repository/GxPress.Repository.Implement/ArticleGroupUserRepository.cs

@@ -120,7 +120,7 @@ namespace GxPress.Repository.Implement
                 result.Add(new ArticleGroupUserListResult
                 {
                     Id = 0,
-                    ArticleGroupId = item.Id,
+                    ArticleGroupId = item.IsSystemDefault == true && item.Id == 63 ? 0 : item.Id,
                     ArticleGroupName = item.Name,
                     IsSystemDefault = item.IsSystemDefault,
                     UserId = request.UserId