From 304b381ffa86f534e5335b48a156176a06e2f20e Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 27 十二月 2018 15:59:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 38297f3..6ec55f3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -252,8 +252,8 @@
     #通知玩家物品信息
     __Sync_PackDetel(curPlayer)
     
-    #更新主服ID信息
-    #UpdatePlayerServerGroupID(curPlayer)
+    #更新服务器组ID
+    PlayerControl.UpdPlayerServerGroupID(curPlayer)
     
     #上线学习技能
     SkillCommon.PlayerLoginCheckLearnSkill(curPlayer)
@@ -826,20 +826,6 @@
 # #    curPlayer.Syn_OfflineTimeRefresh(int(curOfflineMinutes))
 #    curPlayer.Syn_OfflineTimeQueryResult()
 #===============================================================================
-    return
-
-def UpdatePlayerServerGroupID(curPlayer):
-    # 更新自己的服务器组ID, 跨服服务器不处理
-    if GameWorld.IsCrossServer():
-        return
-    serverGroupID = GameWorld.GetServerGroupID()
-    if not serverGroupID:
-        return
-    playerServerGroupID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ServerGroupID)
-    if playerServerGroupID != serverGroupID:
-        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ServerGroupID, serverGroupID)
-        GameWorld.DebugLog("更新玩家所属服务器组ID: serverGroupID=%s" % serverGroupID)
-        
     return
 
 #---------------------------------------------------------------------

--
Gitblit v1.8.0