hch
2018-10-10 e349914acc15e4b8d2f438d7735e953c9cb18c07
4102 【后端】混服支持 - 补充接口注释说明
2个文件已修改
34 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -482,6 +482,23 @@
        return mainServerID
    return GetServerID()
#===============================================================================
# ƽ̨ID = appid
# 运营ID = spid
# 服务器账号更改
# 原先账号组合为
# 运营提供的玩家账号ID + 平台ID + 区服组成
#
# 因为IOS和安卓在支持混服的情况下,还要能支持同一个角色号,故引入一个新的运营ID(客户端打包配置),以保证玩家账号为同一个
# 账号组合变更
# 运营提供的玩家账号ID + 运营ID + 区服组成
#
# 原游戏中获取平台ID接口变更
# 1. db 从数据库中的账号表获取AppID
# 2. GameServer和MapServer 接口改为GetOperator 参考 GetPlayerPlatform
#===============================================================================
##获取玩家所属平台
def GetPlayerPlatform(curPlayer):
    return curPlayer.GetAccountInfo().GetOperator()
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -1086,6 +1086,23 @@
        return mainServerID
    return GetServerID()
#===============================================================================
# ƽ̨ID = appid
# 运营ID = spid
# 服务器账号更改
# 原先账号组合为
# 运营提供的玩家账号ID + 平台ID + 区服组成
#
# 因为IOS和安卓在支持混服的情况下,还要能支持同一个角色号,故引入一个新的运营ID(客户端打包配置),以保证玩家账号为同一个
# 账号组合变更
# 运营提供的玩家账号ID + 运营ID + 区服组成
#
# 原游戏中获取平台ID接口变更
# 1. db 从数据库中的账号表获取AppID
# 2. GameServer和MapServer 接口改为GetOperator 参考 GetPlayerPlatform
#===============================================================================
##获取玩家所属平台
def GetPlayerPlatform(curPlayer):
    return curPlayer.GetAccountData().GetOperator()