From 1a3ffe8f1c45c946d9a7286217107bf3e42d86d6 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 12 十一月 2018 21:39:28 +0800 Subject: [PATCH] 2683 子 天赋技能和新增双职业各两个技能 / 【后端】天赋技能 --- 天赋技能减CD,buff减层关联技能可触发 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py index 3498980..56dc210 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py @@ -1086,10 +1086,26 @@ 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(gameAccID): - infoList = gameAccID.split(Def_AccID_Split_Sign) - return "" if len(infoList) < 3 else infoList[-2] +def GetPlayerPlatform(curPlayer): + return curPlayer.GetAccountData().GetOperator() ##获取平台账号 def GetPlatformAccID(gameAccID): -- Gitblit v1.8.0