Bladeren bron

修改好友列表排序

leiyasi 1 jaar geleden
bovenliggende
commit
5b9f0808ce
1 gewijzigde bestanden met toevoegingen van 2 en 11 verwijderingen
  1. 2 11
      GameClient/Assets/Game/HotUpdate/Data/FriendDataManager.cs

+ 2 - 11
GameClient/Assets/Game/HotUpdate/Data/FriendDataManager.cs

@@ -109,15 +109,6 @@ namespace GFGGame
             if (!sort) return;
             _list.Sort((long a, long b) =>
             {
-                if(_friendDic[a].roleInfo.offlineTimeSec == 0)
-                {
-                    return -1;
-                }
-                if(_friendDic[b].roleInfo.offlineTimeSec == 0)
-                {
-                    return 1;
-                }
-
                 long count = _friendDic[a].roleInfo.offlineTimeSec - _friendDic[b].roleInfo.offlineTimeSec;
                 if (count > 0)
                 {
@@ -181,9 +172,9 @@ namespace GFGGame
 
         public bool CheckInApplyList(long roleId)
         {
-            foreach(var friendInfo in _applyDatas)
+            foreach (var friendInfo in _applyDatas)
             {
-                if(friendInfo.roleInfo.roleId == roleId)
+                if (friendInfo.roleInfo.roleId == roleId)
                 {
                     return true;
                 }