237 【福利内容】每日任务/每周任务/章节奖励-服务端(英雄之路支持给定制物品: 成就系统)
| | |
| | | SyncSuccessAwardRecord(curPlayer, [succID], True)
|
| | |
|
| | | awardItemList = ipyData.GetAwardItemList()
|
| | | if awardItemList:
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["SuccessAward", False, {}])
|
| | | #if awardItemList:
|
| | | # ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["SuccessAward", False, {}])
|
| | | |
| | | # 支持定制属性物品
|
| | | isAuctionItem = 0
|
| | | notifyAwardList = []
|
| | | appointInfo = {}
|
| | | for itemInfo in awardItemList:
|
| | | itemID, itemCount = itemInfo[:2]
|
| | | appointID = itemInfo[2] if len(itemInfo) > 2 else 0 |
| | | setAttrDict = {ShareDefine.Def_CItemKey_AppointID:appointID} if appointID else {}
|
| | | if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isAuctionItem, event=["SuccessAward", False, {}], setAttrDict=setAttrDict):
|
| | | continue
|
| | | notifyAwardList.append([itemID, itemCount, isAuctionItem])
|
| | | appointInfo[itemID] = appointID
|
| | | ItemControler.NotifyGiveAwardInfo(curPlayer, notifyAwardList, "SuccessAward", dataEx={"appointInfo":appointInfo})
|
| | | return
|
| | |
|
| | | def SyncSuccessInfo(curPlayer, syncTypeCondList=None, isSendZero=False):
|