From ec2e61906a08dc60adaf7741fbe6f1fa420c1eb5 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 06 九月 2021 19:27:19 +0800 Subject: [PATCH] 9152 【主干】【BT3】【后端】查看玩家缓存备档耗时过长优化 --- ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/ClearOpenServerDay.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/ClearOpenServerDay.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/ClearOpenServerDay.py index c7e35b6..717ac12 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/ClearOpenServerDay.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/ClearOpenServerDay.py @@ -13,11 +13,9 @@ # # @change: "2012-07-20 19:00" whx 世界等级和开服天书有关,也要清除 # @change: "2013-12-06 15:00" hxp 增加通知MapServer开服天数 -# @change: "2014-11-27 16:30" hxp 增加开服活动数据重置相关; 增加清除竞技场数据 # @change: "2014-12-02 11:30" hxp 增加合服状态及天数;强制刷新全服活动 # @change: "2014-12-03 14:30" hxp 增加合服活动重置 # @change: "2015-01-21 16:00" hxp 增加重置合服寻宝活动 -# @change: "2015-06-16 15:00" hxp 屏蔽清除竞技场数据; 玩家允许None # #------------------------------------------------------------------------------ #"""Version = 2015-06-16 15:00""" @@ -29,6 +27,7 @@ import PlayerBillboard import PlayerUniversalGameRec import GameWorldProcess +import GameWorldArena import GameWorldBoss import GMCommon @@ -70,7 +69,7 @@ PlayerBillboard.ClearBillboardByIndex(oscBillboardType) # 清除Rec - delRecTypeList = [] + delRecTypeList = [ShareDefine.Def_UniversalGameRecType_BossFirstKill] universalRecMgr = GameWorld.GetUniversalRecMgr() for recType in delRecTypeList: universalRecMgr.Delete(recType) @@ -83,6 +82,10 @@ # 广播分流boss状态 GameWorldBoss.Sync_BossShuntLineInfo() + # 竞技场重置 + PlayerDBGSEvent.SetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ArenaOSSeasonState, 0) + GameWorldArena.__DoArenaSeasonReset("GMReset") + if curPlayer: PlayerEventCounter.Sync_OpenServerDay(curPlayer) GameWorld.DebugAnswer(curPlayer, '开服星期%s, 天数:%s 是否合服:%s, 合服天数:%s'%\ -- Gitblit v1.8.0