| | |
| | | def GetServerVersion():
|
| | | return GetGameWorld().GetServerVersion()
|
| | |
|
| | | def IsBattleServer():
|
| | | ## 是否战斗服务器
|
| | | return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "BattleServer"), 0) == 1
|
| | |
|
| | | def GetServerGroupID():
|
| | | ## 服务器组ID,必须唯一,代表这台物理服务器
|
| | | return ToIntDef(ReadChConfig.GetPyMongoConfig("platform", "GroupID"), 0)
|
| | |
| | |
|
| | | ##获取玩家所属平台
|
| | | def GetPlayerPlatform(curPlayer):
|
| | | return curPlayer.GetAccountData().GetOperator()
|
| | | appID = curPlayer.GetAccountData().GetOperator()
|
| | | if not appID:
|
| | | appID = GetAppIDByAccID(curPlayer.GetAccID())
|
| | | return appID
|
| | |
|
| | | ##获取平台账号
|
| | | def GetPlatformAccID(gameAccID):
|