From 1c34f0edac641d381c0fe45839bbfb9e4b0ce4b6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 03 九月 2018 10:53:12 +0800
Subject: [PATCH] fix:超值礼包时间通知修改

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
index 7a7355b..d4802cb 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
@@ -607,10 +607,11 @@
         return
     giftID, day = superGiftTimeList[giftIndex-1]
     openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay)+1
+    remainDay = max(0, day - openServerDay+startDay)-1
     
     packData = ChPyNetSendPack.tagMCSuperGiftInfo()
     packData.GiftID = giftID
-    packData.RemainDay = max(0, day - openServerDay+startDay)
+    packData.EndtDate = str(GameWorld.GetDatetimeByDiffDays(remainDay))[:10]
     NetPackCommon.SendFakePack(curPlayer, packData)
     return
 def CheckSuperGiftBuy(curPlayer, giftID):

--
Gitblit v1.8.0