hxp
2025-06-03 887a4882a958e29923e58805bf552f3f13499693
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -609,8 +609,6 @@
        return False
    #if not curPlayer.GetInitOK():
    #    return False
    #if IsTJGPlayer(curPlayer):
    #    return False
    if IsMirrorPlayer(curPlayer):
        return False
    return True
@@ -1162,9 +1160,6 @@
    if npcObj == IPY_GameWorld.gnotSummon:
        return GetNPCManager().FindSummonNPCByID(curTagNPC.GetID())
    
    elif npcObj == IPY_GameWorld.gnotTruck:
        return GetNPCManager().FindTruckByID(curTagNPC.GetID())
    elif npcObj == IPY_GameWorld.gnotPet:
        return GetNPCManager().FindPetByID(curTagNPC.GetID())
    
@@ -1361,6 +1356,8 @@
def GetPlatform():
    return ReadChConfig.GetPyMongoConfig("platform", "PlatformName")
def IsTestPlatform(platform): return platform in ["test", "yun"]
#===============================================================================
# ##获得当前服务器ID
# # @param 无
@@ -1406,6 +1403,9 @@
        return mainServerID
    return 0
def GetDBPlayerAccIDByID(playerID):
    ## 获取玩家表账号ID - 根据玩家ID, 可用于判断是否本服玩家
    return PyGameData.g_dbPlayerIDMap.get(playerID, "")
#===============================================================================
# ƽ̨ID = appid
@@ -2387,8 +2387,8 @@
def SendGameErrorEx(errType, msgInfo="", playerID=0):
    ErrLog("SendGameErrorEx: %s -> %s" % (errType, msgInfo), playerID)
    SendGameError(errType, msgInfo)
    #if GetGameWorld().GetDebugLevel():
    #    raise Exception("%s -> %s" % (errType, msgInfo))
    if GetGameWorld().GetDebugLevel():
        raise Exception("%s -> %s" % (errType, msgInfo))
    return
def SendGameError(errType, msgInfo=""):