From 41d25326ad09ab88259413743e819a4a70edfc3b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 23 十一月 2023 14:36:40 +0800
Subject: [PATCH] 10012 【主干】【港台】首充改成直购
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py | 4 +++-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py | 10 ++++++++++
2 files changed, 13 insertions(+), 1 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 f288495..4b6fb45 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -568,7 +568,9 @@
PlayerFeastTravel.AddFeastTravelTaskValue(curPlayer, ChConfig.Def_FeastTravel_CTGExp, addVIPExp)
#投资
if ctgIpyData:
- PlayerGoldInvest.InvestByCTG(curPlayer, ctgIpyData.GetRecordID())
+ ctgID = ctgIpyData.GetRecordID()
+ PlayerGoldInvest.InvestByCTG(curPlayer, ctgID)
+ PlayerGoldGift.OnGiftByCTGID(curPlayer, ctgID)
serverDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
addDRDict.update({"gold":[goldBefore, goldAfter], "changeCoinPoint":[changeCoinPointBefore, changeCoinPointAfter], "todayCTGCoinTotal":todayCTGCoinTotal,
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py
index 0bdb649..f9f4319 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py
@@ -195,7 +195,17 @@
# @param addGold: 充元宝数
# @return: None
def OnPlayerChargeGold(curPlayer):
+ return
+
+def OnGiftByCTGID(curPlayer, ctgID):
+ firstGoldCTGIDList = IpyGameDataPY.GetFuncEvalCfg("FirstGold", 4)
+ if ctgID in firstGoldCTGIDList:
+ OnActiviteFirstGold(curPlayer)
+
+ return
+
+def OnActiviteFirstGold(curPlayer):
firstGoldServerDay = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldServerDay)
if not firstGoldServerDay:
recordServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
--
Gitblit v1.8.0