using Sog; using ProtoCSStruct; using System.Collections.Generic; using System; namespace Game { public static class PlayerDataVersionUpdate { //所有需要通过补丁执行的放这里 public static void UpdateVersionAll(PlayerOnGame player) { try { Version2_FixArenaRewardTime(player); } catch (Exception ex) { TraceLog.Exception(ex); } } private static void Version2_FixArenaRewardTime(PlayerOnGame player) { int thisUpVersion = 2; var config = GameServerUtils.GetServerConfig(); if (config.dataVersion < thisUpVersion) { return; } // 已执行 if (player.RoleData.DataVersion >= thisUpVersion) { return; } var nowSec = GameServerUtils.GetTimeSecond(); // 这段代码在2023-09-25后失效, 如果有玩家还未上线领奖, 后续也都全部超时了 if (nowSec > 1695567600) { return; } } } }