From 84a092ef093c912e9b99850cc00bd2cd55aa1e4a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 02 十一月 2018 18:37:11 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py
index e7e2154..d479a12 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py
@@ -91,6 +91,8 @@
 import PlayerFlashGiftbag
 import PlayerFairyCeremony
 import PlayerRefineStove
+import PlayerFlashSale
+import PlayerWishingWell
 import PlayerVip
 import PlayerDiceEx
 import IpyGameDataPY
@@ -424,9 +426,17 @@
 #  @remarks 函数详细说明.
 def GameServer_InitOK(index, tick):
     curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
-    #通知BServer自己OK了
-    curPlayer.SendToBServerServerInitOK()
-    ChPlayer.OnAllServerInitOK(curPlayer, tick)
+    try:
+        #通知BServer自己OK了
+        curPlayer.SendToBServerServerInitOK()
+        ChPlayer.OnAllServerInitOK(curPlayer, tick)
+    except:
+        curPlayer.Kick(IPY_GameWorld.disWaitForPlayerLoinError)
+        import traceback
+        GameWorld.ErrLog("玩家上线逻辑错误~~~~~\r\n%s" % traceback.format_exc())
+        if GameWorld.GetGameWorld().GetDebugLevel():
+            raise Exception("玩家上线逻辑错误~~~~\r\n%s" % traceback.format_exc())
+    return
 
 #--------------------------------------------------------
 def PlayerOnDay(curPlayer):
@@ -547,6 +557,8 @@
     
     # 仙盟红包OnDay
     PlayerFamilyRedPacket.RedPacketOnDay(curPlayer, onEventType)
+    #许愿池
+    PlayerWishingWell.OnDay(curPlayer)
     return
 
 
@@ -1280,6 +1292,13 @@
             
             elif actionName == ShareDefine.OperationActionName_FairyCeremony:
                 PlayerFairyCeremony.RefreshOperationAction_FairyCeremony()
+            
+            elif actionName == ShareDefine.OperationActionName_FlashSale:
+                PlayerFlashSale.RefreshflashSaleActionInfo()
+                
+            elif actionName == ShareDefine.OperationActionName_WishingWell:
+                PlayerWishingWell.RefreshWishingWellAction()
+                
             return
         
         if msgValue.isdigit():

--
Gitblit v1.8.0