| | |
| | | Sync_CoinToGoldCountInfo(curPlayer)
|
| | | return
|
| | |
|
| | | def DoResetCTGCountByIDList(curPlayer, resetEvent, resetCTGIDList):
|
| | | # 重置充值次数
|
| | | if not resetCTGIDList:
|
| | | return
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | for recordID in resetCTGIDList:
|
| | | totalBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CTGGoodsBuyCount % recordID)
|
| | | todayBuyCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TodayCTGCount % recordID)
|
| | | if not totalBuyCount and not todayBuyCount:
|
| | | continue
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CTGGoodsBuyCount % recordID, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TodayCTGCount % recordID, 0)
|
| | | drDict = {"PlayerID":curPlayer.GetPlayerID(),"AccID":curPlayer.GetAccID(), "ResetEvent":resetEvent,
|
| | | "totalBuyCount":totalBuyCount, "todayBuyCount":todayBuyCount, "recordID":recordID}
|
| | | DataRecordPack.SendEventPack("ResetCTGCount", drDict, curPlayer)
|
| | | GameWorld.Log("重置充值次数: resetEvent=%s,recordID=%s,totalBuyCount=%s,todayBuyCount=%s" |
| | | % (resetEvent, recordID, totalBuyCount, todayBuyCount), playerID)
|
| | | Sync_CoinToGoldCountInfo(curPlayer, resetCTGIDList)
|
| | | return
|
| | |
|
| | | def OnDay(curPlayer):
|
| | | ## 充值相关过天
|