/// <summary> /// 清空下线玩家的缓存数据 /// </summary> /// <param name="session"></param> public void ClearOffLineData(ServerSession session) { PlayerData pd = cacheSvc.GetPlayerDataBySettion(session); pd.time = timerSvc.GetNowTime(); if (!cacheSvc.UpdatePlayerData(pd.id, pd)) { PECommon.Log("Update OffLine Account Time Error"); } cacheSvc.AcctOffLine(session); }
public void ClearOfflineData(ServerSession session) { PlayerData pd = cacheSvc.GetPlayerDataBySession(session); if (pd != null) { pd.time = TimerSvc.Instance.GetNowTime(); if (!cacheSvc.UpdatePlayerData(pd.id, pd)) { Common.Log("Update offline time error", LogType.Error); } } cacheSvc.AcctOffLine(session); }
public void ClearOfflineData(ClientSocket session) { //写入下线时间 PlayerData pd = cacheSvc.GetPlayerDataBySession(session); if (pd != null) { pd.Time = timerSvc.GetNowTime(); if (!cacheSvc.UpdatePlayerData(pd.Id, pd)) { KDCommon.Log("Update offline time error", LogType.Error); } cacheSvc.AcctOffLine(session); } }
/// <summary> /// 玩家线下 /// </summary> public void ClearOfflineData(ServerSession session) { // 更新下线时间 PlayerData pd = cacheSvc.GetPlayerDataBySession(session); if (pd != null) { pd.time = timerSvc.GetNowTime(); if (!cacheSvc.UpdatePlayerData(pd.id, pd)) { PECommon.Log("更新下线时间错误..", LogType.Error); } cacheSvc.AcctOffLine(session); // 清除缓存 } }
public void ClearOffData(ServerSession session) { cacheSvc.AcctOffLine(session); }