From c2c30fce8df5dc5ea69f4f93bc9a6c655b2928cd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 05 十二月 2025 15:15:15 +0800
Subject: [PATCH] 376 【福利】兑换码

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_MediaCard.py |   39 +++++++++++++++++++++++++++++++++++++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.py     |    1 +
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_MediaCard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_MediaCard.py
new file mode 100644
index 0000000..7e2ef64
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_MediaCard.py
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_MediaCard
+#
+# @todo:GM工具命令 - 媒体卡
+# @author hxp
+# @date 2025-12-05
+# @version 1.0
+#
+# 详细描述: GM工具命令 - 媒体卡,现在已直接使用邮件发放奖励,该命令目前仅用于使用失败的提示用
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2025-12-05 15:30"""
+#-------------------------------------------------------------------------------
+
+import GMCommon
+from Player import (PlayerControl)
+
+## 收到gm命令执行
+# @param gmCmdDict:gm命令字典
+# @return None 
+def OnExec(gmCmdDict):
+    
+    from GMToolLogicProcess import  ProjSpecialProcess
+    Result, curPlayer = ProjSpecialProcess.GMCmdPlayerValidation(gmCmdDict, False)
+    if Result != GMCommon.Def_Success:
+        return Result
+    if not curPlayer:
+        # 玩家不在线,仅系统提示用,可不处理
+        return Result
+    
+    notifyMsg = gmCmdDict.get('notifyMsg', '')
+    if notifyMsg:
+        PlayerControl.NotifyCode(curPlayer, notifyMsg)
+        
+    return GMCommon.Def_Success
+ 
\ No newline at end of file
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.py
index bfa759a..f915c20 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/ProjSpecialProcess.py
@@ -326,6 +326,7 @@
                 execType = ret[0]
                 execInfo = ret[1]
         else:
+            mylog.info("no gm cmd -> %s" % self.funcName)
             execType = GMCommon.Def_GMCmdNone
             
         GetGMOrderMgr().PopCmd(self.orderId)

--
Gitblit v1.8.0