| | |
| | | #
|
| | | # @todo:GameServer向DB请求的回复信息
|
| | |
|
| | | import GameWorld
|
| | | import PlayerPackData
|
| | | import IPY_GameServer
|
| | | import ChConfig
|
| | |
|
| | |
| | | if result == 0:
|
| | | return
|
| | | queryType = dbResultPack.GetQueryType()
|
| | | if queryType == 0:
|
| | | data = eval(dbResultPack.GetData())
|
| | | playerID = data['id'] #发起请求的玩家ID
|
| | | mapID = data['mapid']
|
| | | curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
|
| | | if not curPlayer:
|
| | | return
|
| | | |
| | | if queryType == ChConfig.gstDBLogic_PlayerPackData:
|
| | | mirrorID = dbResultPack.GetID()
|
| | | playerData = dbResultPack.GetResultSet()
|
| | | msgInfo = eval(dbResultPack.GetData())
|
| | | PlayerPackData.OnDBPlayerPackData(mirrorID, playerData, msgInfo)
|
| | |
|
| | | data['playerData'] = dbResultPack.GetResultSet()
|
| | | dateStr = str(data)
|
| | | GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, ChConfig.queryType_MirrorPlayer, playerID, mapID,
|
| | | "PlayerMirror", dateStr, len(dateStr), curPlayer.GetRouteServerIndex())
|
| | | return |
| | | return
|
| | |
|