李昊 4 years ago
parent
commit
47ca205cd7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gx_api/GxPress/Service/GxPress.Service.Implement/UserService.cs

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

@@ -417,7 +417,8 @@ namespace GxPress.Service.Implement
                 FriendUsers = await _userRepository.GetUserInfoResultsAsync(userIds)
             };
             if (result.FriendUsers != null && result.FriendUsers.Count() > 0)
-                result.FriendUsers.Select(n => n.AvatarUrl = StringUtils.AddDomainMin(n.AvatarUrl));
+                foreach (var item in result.FriendUsers)
+                    item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
             return result;
         }
         /// <summary>