From e386ca47903c63b59e0db877423c565e295d2cb9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 06 五月 2021 16:16:50 +0800
Subject: [PATCH] 8721 【主干】【BT2】【后端】H.活动-合服庆典(转盘)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index fc7d5e5..9fe81cd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -71,6 +71,7 @@
 import PyGameData
 import PlayerMagicWeapon
 import PlayerFeastTravel
+import PlayerActTurntable
 import GameLogic_SealDemon
 import GameLogic_ZhuXianBoss
 import GameLogic_CrossDemonKing
@@ -3169,9 +3170,13 @@
     #PlayerGoldAction.PlayerUseGold(curPlayer, price)
     
     # 消费返利
-    PlayerCostRebate.AddCostRebateGold(curPlayer, costType, price, infoDict)
-    PlayerFeastTravel.AddFeastTravelTaskValue(curPlayer, ChConfig.Def_FeastTravel_UseGold, price)
-    
+    if costType not in ChConfig.CostRebate_DisableType:
+        PlayerCostRebate.AddCostRebateGold(curPlayer, costType, price, infoDict)
+        PlayerFeastTravel.AddFeastTravelTaskValue(curPlayer, ChConfig.Def_FeastTravel_UseGold, price)
+        PlayerActTurntable.OnPlayerUseGold(curPlayer, price)
+    else:
+        GameWorld.DebugLog("不计入消费活动的消费类型!costType=%s" % costType, curPlayer.GetPlayerID())
+        
     # 事件汇报
     #===========================================================================
     # if costType == ChConfig.Def_Cost_BourseBuy:

--
Gitblit v1.8.0