Browse Source

修改好友排序

leiyasi 1 year ago
parent
commit
3ee5b4eed9
1 changed files with 1 additions and 1 deletions
  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;