From 2941a7635bb04ca59afa820b51a23aca9dc70eb9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 29 十月 2019 11:59:23 +0800
Subject: [PATCH] 4610 【恺英】【bug】脱机上线报错

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerCompensation.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerCompensation.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerCompensation.py
index 18599de..d67cf3f 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerCompensation.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerCompensation.py
@@ -273,7 +273,7 @@
         
     compensationDict = {"GUID":GUID, "CheckState":checkState, "LimitLVType":limitLVType, "LimitLV":limitLV,
                         "Gold":compensation.Gold, "GoldPaper":compensation.GoldPaper, "Silver":compensation.Silver,
-                        "PlayerJob":compensation.PlayerJob, "Sender":sender, "Title":title, "Content":content,
+                        "PlayerJob":compensation.PlayerJob, "Sender":sender, "Title":title, "Content":content, "OnlyServerID":compensation.ServerID,
                         "CreateTime":compensation.CreateTime, "LimitTime":compensation.LimitTime, "ItemList":itemList}
     return compensationDict
 
@@ -617,6 +617,11 @@
                 SetPrizeState(curPlayerID, curRequire.GUID, Disable_State, readState)
                 continue
             
+        if curRequire.ServerID and curRequire.ServerID != GameWorld.GetPlayerServerID(curPlayer):
+            # 指定服务器邮件
+            SetPrizeState(curPlayerID, curRequire.GUID, Disable_State, readState)
+            continue
+        
         #可以用的奖励
         if Enable_State != curState:
             SetPrizeState(curPlayerID, curRequire.GUID, Enable_State, readState)

--
Gitblit v1.8.0