From 9a1a4ea5a8728383a393bfa626f55e86b55b0e46 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 31 一月 2019 21:37:59 +0800
Subject: [PATCH] 6116 子 【开发】【1.6】当玩家攻击无敌状态的目标时候进入cd / 【后端】【1.6】攻击无敌目标技能进入cd - # 根据策划需求 以客户端动作为标准,不可攻击状态也进入CD

---
 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