ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py
@@ -37,7 +37,6 @@ GameWorld.ImportAll("Script\\GM\\" , "Commands") GameWorld.ImportAll("Script\\GM\\" , "") TestPlatformList = ["test", "yun"] #--------------------------------------------------------------------- ## 重新导入GM全部命令 # @param tick 当前时间 @@ -74,7 +73,7 @@ # curIP = curPlayer.GetIP() # if (curIP.find('10.30.') == 0 or curIP.find('192.168.') == 0) and playerPF == "173on_lan": #测试修改 if playerPF in TestPlatformList: if GameWorld.IsTestPlatform(playerPF): curPlayer.SetGMLevel(gmLV) GameWorld.DebugAnswer(curPlayer, "SetGMLevel %s" % gmLV) else: ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1356,6 +1356,8 @@ def GetPlatform(): return ReadChConfig.GetPyMongoConfig("platform", "PlatformName") def IsTestPlatform(platform): return platform in ["test", "yun"] #=============================================================================== # ##获得当前服务器ID # # @param 无 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -101,7 +101,6 @@ import PlayerFace import PlayerMail import ChPlayer import GMShell import GameObj import random @@ -4707,12 +4706,13 @@ def __DoRefreshGMAttr(self): ## 刷新GM测试属性 curPlayer = self.__Player platform = GameWorld.GetPlatform() if platform not in GMShell.TestPlatformList: return if curPlayer.GetGMLevel() != ChConfig.Def_GM_LV_God: return platform = GameWorld.GetPlatform() if not GameWorld.IsTestPlatform(platform): return ipyDataMgr = IpyGameDataPY.IPY_Data() if not ipyDataMgr.GetGMAttrCount(): return