| | |
| | | import PlayerGoldGift
|
| | | import PlayerActTotalRecharge
|
| | | import PlayerActRechargePrize
|
| | | import PlayerActGrowupBuy
|
| | | import OpenServerCampaign
|
| | | import PlayerWeekParty
|
| | | import PlayerGoldInvest
|
| | |
| | |
|
| | |
|
| | | def OnDay(curPlayer):
|
| | | ## 充值相关过天
|
| | | |
| | | #在重置之前需要处理的
|
| | | PlayerActGrowupBuy.DoUpdateGrowupBuyStateOnDay(curPlayer) # 成长必买
|
| | | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TodayCTGCoinTotal, 0)
|
| | |
|
| | | syncRecordIDList = []
|
| | |
| | |
|
| | | addDRDict.update({"recordID":recordID})
|
| | |
|
| | | # 成长必买类型
|
| | | if ipyData.GetPayType() == 16:
|
| | | canBuy, errInfo = PlayerActGrowupBuy.CheckGrowupBuyState(curPlayer, recordID)
|
| | | if not canBuy:
|
| | | DataRecordPack.DR_CTGError(curPlayer, errInfo, addDRDict)
|
| | | return
|
| | | |
| | | totalBuyCountLimit = ipyData.GetTotalBuyCount()
|
| | | totalBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CTGGoodsBuyCount % recordID)
|
| | | if totalBuyCountLimit:
|