| | |
| | |
|
| | | def SendPersonalItemMailBatch(batchMailInfoList):
|
| | | ## 批量发送邮件
|
| | | mailTypeKey, batchPlayerIDList, batchAddItemList, batchParamList, batchGold, batchGoldPaper, batchSilver, batchDetail, moneySource = batchMailInfoList
|
| | | mailTypeKey, batchPlayerIDList, batchAddItemList, batchParamList, batchGold, batchGoldPaper, batchSilver, batchDetail, moneySource, crossMail = batchMailInfoList
|
| | |
|
| | | lenPlayerID = len(batchPlayerIDList)
|
| | | lenItem = len(batchAddItemList)
|
| | |
| | | silver = batchSilver[i] if lenSilver == lenPlayerID else 0
|
| | | detail = batchDetail[i] if lenDetail == lenPlayerID else ""
|
| | | content = "<MailTemplate>%s</MailTemplate>%s" % (mailTypeKey, str(paramList))
|
| | | SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver, detail=detail, moneySource=moneySource)
|
| | | SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver, detail=detail, moneySource=moneySource, crossMail=crossMail)
|
| | |
|
| | | return
|
| | |
|
| | |
| | | SetPrizeState(curPlayerID, curRequire.GUID, Disable_State, readState)
|
| | | continue
|
| | |
|
| | | if limitLVType == LimitLVType_Not and curPlayer.GetCreateRoleTime() > curRequire.CreateTime:
|
| | | #GameWorld.DebugLog("升级后不可领取的邮件发送时间后创角的玩家默认不可领取! CreateRoleTime=%s > %s" % (curPlayer.GetCreateRoleTime(), curRequire.CreateTime))
|
| | | SetPrizeState(curPlayerID, curRequire.GUID, Disable_State, readState)
|
| | | continue
|
| | |
|
| | | if limitLV > curLV:
|
| | | #等级不足
|
| | | if limitLVType == LimitLVType_Not:
|