From c15c8f7eab589727de0195c40862e9afe08e890b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 20 三月 2019 18:23:37 +0800 Subject: [PATCH] 6373 【后端】【2.0】删除无用功能代码、封包、配置(页游特惠活动相关) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py | 72 ------------------------------------ 1 files changed, 0 insertions(+), 72 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py index 731ff4f..4758ca5 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py @@ -652,78 +652,6 @@ def ViewBillboardRangeByObjID(index, clientData, tick): return -## 更新充值特惠排行榜 -# @param cmdList -# @return None -def MapServer_UpdateRechargeRankBillboard(cmdList): - playerID, playerName, playerOpInfo, playerJob, playerLV, familyName, actionID, actionNum, updateGold = cmdList - # 排行榜上榜限制 - RechargeRankInfoDict = ReadChConfig.GetEvalChConfig("TeHuiAction_RechargeRank") - gameWorld = GameWorld.GetGameWorld() - actionNumKey = ShareDefine.Def_Notify_WorldKey_DayAction_RechargeRank - curActionNum = gameWorld.GetDictByKey(actionNumKey) - curActionID = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_DayAction_ID % actionNumKey) - GameWorld.DebugLog("MapServer_UpdateRechargeRankBillboard...") - GameWorld.DebugLog(" actionID=%s,actionNum=%s,updateGold=%s,curActionID=%s,curActionNum=%s," - % (actionID, actionNum, updateGold, curActionID, curActionNum), playerID) - - # 非当前活动,不更新 - if actionNum not in RechargeRankInfoDict or actionNum != curActionNum or actionID != curActionID: - GameWorld.DebugLog(" 非当前充值特惠排行榜活动,不更新...", playerID) - return - - rechargeRankInfoList = RechargeRankInfoDict[actionNum] - if len(rechargeRankInfoList) <= 0: - return - - limitGold = rechargeRankInfoList[0] # 限制上榜充值数 - if updateGold < limitGold: - GameWorld.DebugLog(" 未达到最低上榜充值数=%s,不更新..." % limitGold, playerID) - return - - #排行榜 - cmpValue = updateGold - isOk = UpdatePlayerBillboard(playerID, playerName, familyName, ShareDefine.Def_BT_RechargeTeHui, - playerJob, playerLV, updateGold, cmpValue) - GameWorld.DebugLog(" 更新充值特惠排行榜 isOk=%s" % isOk, playerID) - return - -## 更新消费特惠排行榜 -# @param cmdList -# @return None -def MapServer_UpdateCostRankBillboard(cmdList): - playerID, playerName, playerOpInfo, playerJob, playerLV, familyName, actionID, actionNum, updateGold = cmdList - # 排行榜上榜限制 - costRankInfoDict = ReadChConfig.GetEvalChConfig("TeHuiAction_CostRank") - gameWorld = GameWorld.GetGameWorld() - actionNumKey = ShareDefine.Def_Notify_WorldKey_DayAction_CostRank - curActionNum = gameWorld.GetDictByKey(actionNumKey) - curActionID = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_DayAction_ID % actionNumKey) - GameWorld.DebugLog("MapServer_UpdateCostRankBillboard...") - GameWorld.DebugLog(" actionID=%s,actionNum=%s,updateGold=%s,curActionID=%s,curActionNum=%s," - % (actionID, actionNum, updateGold, curActionID, curActionNum), playerID) - - # 非当前活动,不更新 - if actionNum not in costRankInfoDict or actionNum != curActionNum or actionID != curActionID: - GameWorld.DebugLog(" 非当前消费特惠排行榜活动,不更新...", playerID) - return - - costRankInfoList = costRankInfoDict[actionNum] - if len(costRankInfoList) <= 0: - return - - limitGold = costRankInfoList[0] # 限制上榜消费数 - if updateGold < limitGold: - GameWorld.DebugLog(" 未达到最低上榜消费数=%s,不更新..." % limitGold, playerID) - return - - #排行榜 - cmpValue = updateGold - isOk = UpdatePlayerBillboard(playerID, playerName, familyName, ShareDefine.Def_BT_CostTeHui, - playerJob, playerLV, 0, cmpValue) - GameWorld.DebugLog(" 更新消费特惠排行榜 isOk=%s" % isOk, playerID) - return - ## 排行榜更新是否受等级限制 def IsBillboardLVLimit(playerLV, billboardType): # 等级判断已由地图处理掉,这里不再做判断 -- Gitblit v1.8.0