李昊 4 年之前
父節點
當前提交
19bb3abf73
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

+ 2 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -105,6 +105,8 @@ namespace GxPress.Repository.Implement
                 group.LabelName = request.LabelName;
             if (request.IsShow > 0)
                 group.IsShow = request.IsShow == 1;
+            if (request.IsAdmin > 0)
+                group.IsAdmin = request.IsAdmin == 1;
             if (request.IsWords > 0)
                 group.IsWords = request.IsWords == 1;
             return await _repository.UpdateAsync(group);