5819 【后端】【1.6】运营活动支持对应不同的职业和世界等级(累计充值修改)
| | |
| | | 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:
|