From bf78ded072f95e416e9f272813ec5c5cc7040a50 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 22 十二月 2020 11:35:00 +0800
Subject: [PATCH] 8665 【主干】【后端】移植-成长特惠; (BT单: 8611 【BT】成长必买;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
index 5474f46..d31cf7f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -49,6 +49,7 @@
 import PlayerGoldGift
 import PlayerActTotalRecharge
 import PlayerActRechargePrize
+import PlayerActGrowupBuy
 import OpenServerCampaign
 import PlayerWeekParty
 import PlayerGoldInvest
@@ -119,6 +120,11 @@
 
 
 def OnDay(curPlayer):
+    ## 充值相关过天
+    
+    #在重置之前需要处理的
+    PlayerActGrowupBuy.DoUpdateGrowupBuyStateOnDay(curPlayer) # 成长必买
+    
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TodayCTGCoinTotal, 0)
     
     syncRecordIDList = []
@@ -252,6 +258,13 @@
     
     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:

--
Gitblit v1.8.0