| | |
| | | reload(reloadPath)
|
| | | except Exception:
|
| | | continue
|
| | |
|
| | | |
| | | import DataRecordPack
|
| | | DataRecordPack.DR_Reload("script")
|
| | | Log("Reload Begin : time = %s"%GetCurrentDataTimeStr())
|
| | | return
|
| | |
|
| | |
| | | def GetServerVersion():
|
| | | return GetGameWorld().GetServerVersion()
|
| | |
|
| | | def IsBattleServer():
|
| | | ## 是否战斗服务器
|
| | | return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "BattleServer"), 0) == 1
|
| | |
|
| | | def GetServerGroupName():
|
| | | ## 服务器组名,取 ServersRoute 中的配置
|
| | | return ReadChConfig.GetServersRouteConfig("platform", "GroupName")
|
| | |
|
| | | def GetServerGroupID():
|
| | | ## 服务器组ID,必须唯一,代表这台物理服务器
|
| | | return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "GroupID"), 0)
|