5274 【BT5】【主干】跨服充值排行榜问题(上榜增加保底限制逻辑默认读排行模板最低额度限制;bt5版本改为真实充值有效)
# Conflicts:
# ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
| | |
| | | GameWorld.DebugAnswer(curPlayer, errInfo)
|
| | | GameWorld.DebugAnswer(curPlayer, "新增跨服榜单假数据: BillboardDataCross 类型 分组值1 分组值2 条数 比较值1 可选参数(比较值2 常规值1 常规值2)")
|
| | | GameWorld.DebugAnswer(curPlayer, "删除跨服榜单假数据: BillboardDataCross 类型 分组值1 分组值2")
|
| | | GameWorld.DebugAnswer(curPlayer, "跨服运营活动榜类型:150-充值")
|
| | | GameWorld.DebugAnswer(curPlayer, "跨服运营活动榜类型:150-充值(分组值1配置ID)")
|
| | | return
|
| | |
|
| | | ## 执行逻辑
|
| | |
| | | cfgID = actInfo.get(ShareDefine.ActKey_CfgID, 0)
|
| | | if not cfgID:
|
| | | return
|
| | | |
| | | playerTemplateID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CA_CTGBillboardTemplateID)
|
| | | orderIpyDataList = IpyGameDataPY.GetIpyGameDataList("CrossActCTGBillboardOrder", playerTemplateID)
|
| | | if not orderIpyDataList:
|
| | | return
|
| | | |
| | | atleastRMBMin = None
|
| | | for orderIpyData in orderIpyDataList:
|
| | | atleastRMB = orderIpyData.GetCTGAtleast()
|
| | | if atleastRMBMin == None or atleastRMBMin > atleastRMB:
|
| | | atleastRMBMin = atleastRMB
|
| | | |
| | | if atleastRMBMin == None:
|
| | | return
|
| | | |
| | | if totalRMB < atleastRMBMin:
|
| | | GameWorld.DebugLog("跨服充值排行活动充值额度不足,无法上榜! totalRMB(%s) < atleastRMBMin(%s)" |
| | | % (totalRMB, atleastRMBMin), curPlayer.GetPlayerID())
|
| | | return
|
| | | |
| | | cmpValue = totalRMB
|
| | | PlayerBillboard.UpdatePlayerCrossBillboard(curPlayer, ShareDefine.Def_CBT_ActCTG, cfgID, cmpValue)
|
| | | return
|