5819 【后端】【1.6】运营活动支持对应不同的职业和世界等级(累计充值修改)
1个文件已修改
16 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
@@ -134,19 +134,13 @@
    return
def __GetItemList(itemDict, job, worldLV):
    #{世界等级范围:[(物品ID,个数,是否绑定), ...]},若物品ID要区分职业则配{世界等级范围:[({职业:物品ID,..},个数,是否绑定), ...]}
    itemList = []
    itemInfoList = GameWorld.GetDictValueByRangeKey(itemDict, worldLV, [])
    for itemInfo in itemInfoList:
        if type(itemInfo[0]) == dict:
            itemID = itemInfo[0].get(job)
            if not itemID:
    #{世界等级范围:{职业:[(物品ID,个数,是否绑定), ...]}}
    itemInfoDict = GameWorld.GetDictValueByRangeKey(itemDict, worldLV, {})
    if str(job) not in itemInfoDict:
                GameWorld.ErrLog('累计充值奖励未配置该职业itemDict=%s,job=%s'%(itemDict, job))
                continue
        else:
            itemID = itemInfo[0]
        itemList.append([itemID, itemInfo[1], itemInfo[2]])
    return itemList
        return itemInfoDict[str(job)]
def AddTotalRechargeGold(curPlayer, addGold):
    if addGold <= 0: