Parcourir la source

修改好友排序

leiyasi il y a 2 ans
Parent
commit
3ee5b4eed9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Data/FriendDataManager.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/FriendDataManager.cs

@@ -109,7 +109,7 @@ namespace GFGGame
             if (!sort) return;
             _list.Sort((long a, long b) =>
             {
-                long count = _friendDic[a].roleInfo.offlineTimeSec - _friendDic[b].roleInfo.offlineTimeSec;
+                long count = _friendDic[b].roleInfo.offlineTimeSec - _friendDic[a].roleInfo.offlineTimeSec;
                 if (count > 0)
                 {
                     return -1;