From f15a181fbf2b61631b51e5e3a431c7cff6b15029 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 九月 2020 11:27:48 +0800
Subject: [PATCH] 8483 【后端】【主干】【changwei】【bt】协助方和被协助方任何模式不会互相造成伤害

---
 ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_MediaCard.py |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_MediaCard.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_MediaCard.py
index 987eb44..8b93cd8 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_MediaCard.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_MediaCard.py
@@ -9,7 +9,7 @@
 # @date 2017-05-26
 # @version 1.0
 #
-# 详细描述: 媒体卡
+# 详细描述: 奖励由邮件发放,这里只做不可领取提示
 #
 #-------------------------------------------------------------------------------
 #"""Version = 2017-05-26 14:00"""
@@ -18,6 +18,7 @@
 import GMCommon
 import GameWorld
 import ChConfig
+import PlayerControl
 #---------------------------------------------------------------------
 
 ## 执行逻辑
@@ -28,9 +29,7 @@
 def OnExec(orderId, gmCmdDict):
     queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '')
     playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '')
-    cardType = GameWorld.ToIntDef(gmCmdDict.get('cardType', ''))
-    cardCode = gmCmdDict.get('cardCode', '')
-    cardState = GameWorld.ToIntDef(gmCmdDict.get('cardState', ''))
+    notifyMsg = gmCmdDict.get('notifyMsg', '')
     
     if queryType == GMCommon.Def_GMKey_PlayerAccID:
         queryType = ChConfig.queryType_sqtPlayerByAccID
@@ -40,9 +39,19 @@
         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)
         return
     
-    sendCMD = [cardType, cardCode, cardState]
-    GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, 'GMTMediaCard', sendCMD)
-    return
+    playerManager = GameWorld.GetPlayerManager()
+    #目标玩家
+    tagPlayer = None
+     
+    if queryType == ChConfig.queryType_sqtPlayerByAccID:
+        tagPlayer = playerManager.FindPlayerByAccID(playerFind)
+
+    if not tagPlayer:
+        GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success)
+        return
+    
+    PlayerControl.NotifyCode(tagPlayer, notifyMsg)
+    return GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success)
 
 
 

--
Gitblit v1.8.0