From e261fda74c51592a8e83175f3a7386f48ed13df4 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 28 十一月 2018 16:46:56 +0800
Subject: [PATCH] 4762 【后端】修复开关服后助战次数信息加载失败bug;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 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 92242fe..da6d380 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFlashGiftbag.py
@@ -165,7 +165,7 @@
                                              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)
@@ -235,11 +235,12 @@
         return
     
     # 取玩家APPID,混服使用
-    appID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
+    appID = GameWorld.GetPlayerPlatform(curPlayer)
     
+    openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
     packInfo = ChPyNetSendPack.tagMCFlashGiftbagInfo()
-    packInfo.StartDate = flashGiftbagIpyData.GetStartDate()
-    packInfo.EndtDate = flashGiftbagIpyData.GetEndDate()
+    packInfo.StartDate = GameWorld.GetOperationActionDateStr(flashGiftbagIpyData.GetStartDate(), openServerDay)
+    packInfo.EndtDate = GameWorld.GetOperationActionDateStr(flashGiftbagIpyData.GetEndDate(), openServerDay)
     packInfo.AdvanceMinutes = flashGiftbagIpyData.GetAdvanceMinutes()
     packInfo.ActivityTime = []
     for i, startTime in enumerate(startTimeList):

--
Gitblit v1.8.0