|
@@ -55,7 +55,7 @@ namespace ET.Server
|
|
|
/// <returns></returns>
|
|
|
public static bool IsExist(this SessionPlayerComponent self, long playerId)
|
|
|
{
|
|
|
- return self.PlayerList.Any(info => info != null && info.Id == playerId);
|
|
|
+ return self.PlayerList.Any(info => info != null && info.PlayerId == playerId);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -66,7 +66,7 @@ namespace ET.Server
|
|
|
/// <returns></returns>
|
|
|
public static PlayerInfo Get(this SessionPlayerComponent self, long playerId)
|
|
|
{
|
|
|
- return self.PlayerList.FirstOrDefault(info => info != null && info.Id == playerId);
|
|
|
+ return self.PlayerList.FirstOrDefault(info => info != null && info.PlayerId == playerId);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|