|
@@ -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;
|
|
|
}
|