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

+ 6 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/UserService.cs

@@ -532,7 +532,12 @@ namespace GxPress.Service.Implement
             var departentList = new List<Entity.Department>();
             var departent = await _departmentRepository.GetDepartmentById(departentId, departentList);
             var userIds = await departmentUserRepository.GetUserIdsAsync(departent.Select(n => n.Id));
-            return await _userRepository.GetUserInfoResultsAsync(userIds);
+            var result = await _userRepository.GetUserInfoResultsAsync(userIds);
+            foreach (var item in result)
+            {
+                item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
+            }
+            return result;
         }
         /// <summary>
         /// 获取群聊和小组的用户