From 92126566b642cdb2be53291c8e8e64c7a623782e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 22 一月 2019 20:38:34 +0800
Subject: [PATCH] 5931 【后端】【1.5.100】诛仙装备开发(学习神技广播)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
index 87e8612..bca97e7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
@@ -24,6 +24,7 @@
 import DataRecordPack
 import ItemControler
 import IPY_GameWorld
+import PlayerWeekParty
 import ItemCommon
 import GameWorld
 import ChConfig
@@ -165,14 +166,15 @@
                                              event=[ChConfig.ItemGive_CTG, True, addDRDict])
     
     # 取玩家APPID,混服使用
-    appID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
+    appID = GameWorld.GetPlayerPlatform(curPlayer)
     notifyKey = giftbagIpyData.GetNotifyKey()
     if notifyKey:
         orderIpyData = GetFlashGiftbagIDOrderInfoIpyData(giftbagID, appID)
         rmb = 0 if not orderIpyData else int(orderIpyData.GetPayRMBNum())
         PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), rmb, giftbagIpyData.GetMainItemID()])
-        
+    
     SyncFlashGiftbagBuyCount(curPlayer, [giftbagID])
+    PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_GiftBag, actGiftbagType, False)
     return True
 
 def SyncFlashGiftbagBuyCount(curPlayer, syncIDList=[], giftbagTypeList=[]):
@@ -235,7 +237,7 @@
         return
     
     # 取玩家APPID,混服使用
-    appID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
+    appID = GameWorld.GetPlayerPlatform(curPlayer)
     
     openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
     packInfo = ChPyNetSendPack.tagMCFlashGiftbagInfo()

--
Gitblit v1.8.0