李昊 4 年之前
父節點
當前提交
ddb13d75e2
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      gx_api/GxPress/Service/GxPress.Service.Implement/Group/GroupService.Category.cs

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

@@ -13,7 +13,11 @@ namespace GxPress.Service.Implement.Group
         /// <returns></returns>
         public async Task<IEnumerable<Entity.Group>> GetAllAsync(int categoryId)
         {
-            var group= await _groupRepository.GetAllAsync(categoryId);
+            var group = await _groupRepository.GetAllAsync(categoryId);
+            foreach (var item in group)
+            {
+                item.AvatarUrl = Common.Tools.StringUtils.AddDomain(item.AvatarUrl);
+            }
             return group;
         }
     }