李昊 4 years ago
parent
commit
ddb13d75e2

+ 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;
         }
     }