From 21d171ec2d815dd43ab5f428737c59fed6905d6f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期日, 30 十二月 2018 15:46:54 +0800 Subject: [PATCH] 2797 【1.4】【BUG】跨服匹配战斗中,对方掉线,比赛结算显示自己失败(实际是没掉线,只是其中一个玩家没走完整登录流程,但是后端已经在跨服地图中,导致结算的时候计算胜方逻辑异常) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py index d1be380..6474a7f 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py @@ -25,6 +25,7 @@ import GMCommon import ShareDefine import PlayerControl +import IpyGameDataPY #--------------------------------------------------------------------- #全局变量 #--------------------------------------------------------------------- @@ -50,7 +51,21 @@ changeCoinPointBefore = curPlayer.GetChangeCoinPointTotal() bourseMoneyBefore = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney) - if value.isdigit(): + errorMsg = "" + orderInfoIpyData = None + if appID: + orderInfoIpyData = IpyGameDataPY.GetIpyGameDataNotLog("OrderInfo", value, appID) + if not orderInfoIpyData: + Result = GMCommon.Def_ParamErr + errorMsg = "Can not found the orderInfo(%s) and appID(%s)!" % (value, appID) + + if errorMsg: + GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg) + resultMsg = str([orderId, errorMsg, 'GMT_CTG', Result]) + GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult', resultMsg, len(resultMsg)) + return + + if not orderInfoIpyData and value.isdigit(): orderRMB = int(value) PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_GMTCTG, isAddBourseMoney) else: -- Gitblit v1.8.0