From 9e850c5e25ea52b4a7cf7e82ca6ce519483a672d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 20 一月 2021 16:36:20 +0800 Subject: [PATCH] 8706 【主干】【后端】1元:10仙玉的设定废除(增加充值转化经验配置,VIP等级经验获取修改); --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTCTG.py | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 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 6474a7f..f0d8ded 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 @@ -44,7 +44,7 @@ if not curPlayer or curPlayer.IsEmpty(): return - Result = GMCommon.Def_Success + Result = GMCommon.Def_Unknow orderId, value, appID, isAddBourseMoney, isResult = packCMDList goldBefore = curPlayer.GetGold() @@ -60,19 +60,30 @@ errorMsg = "Can not found the orderInfo(%s) and appID(%s)!" % (value, appID) if errorMsg: - GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg) + GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg, query_ID) 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) + orderRMB = GameWorld.ToNumDef(value, None) + if not orderInfoIpyData and orderRMB != None: + if PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_GMTCTG, isAddBourseMoney): + Result = GMCommon.Def_Success + else: + errorMsg = "order error! value(%s)" % (value) else: orderInfo = value - if not PlayerCoin.DoGMCTG(curPlayer, orderInfo, appID, isAddBourseMoney, ChConfig.Def_GiveMoney_GMTCTG): - Result = GMCommon.Def_Unknow + if PlayerCoin.DoGMCTG(curPlayer, orderInfo, appID, isAddBourseMoney, ChConfig.Def_GiveMoney_GMTCTG): + Result = GMCommon.Def_Success + else: + errorMsg = "orderInfo error! appID(%s), value(%s)" % (appID, value) + if Result != GMCommon.Def_Success: + GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg, query_ID) + resultMsg = str([orderId, errorMsg, 'GMT_CTG', Result]) + GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult', resultMsg, len(resultMsg)) + return + goldAfter = curPlayer.GetGold() changeCoinPointAfter = curPlayer.GetChangeCoinPointTotal() bourseMoneyAfter = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney) @@ -81,7 +92,7 @@ "gold":[goldBefore, goldAfter], "changeCoinPoint":[changeCoinPointBefore, changeCoinPointAfter], "bourseMoney":[bourseMoneyBefore, bourseMoneyAfter]} - GameWorld.Log("GMT_CTG, resultDict=%s" % resultDict) + GameWorld.Log("GMT_CTG, resultDict=%s" % resultDict, query_ID) #流向 增加金额记录 DataRecordPack.DR_ToolGMOperate(query_ID, curPlayer.GetPlayerName(), curPlayer.GetAccID(), 'GMT_CTG', resultDict) -- Gitblit v1.8.0