From 7030d1235dc9f730142506aadd66682a01857fed Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 三月 2026 17:25:34 +0800
Subject: [PATCH] 16 卡牌服务端(增加命令/GMTExec/ClearTalk.py)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_        |    0 
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMTExec/ClearTalk.py |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_Face.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_
similarity index 100%
rename from ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_Face.py
rename to ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMTExec/ClearTalk.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMTExec/ClearTalk.py
new file mode 100644
index 0000000..17ecf0b
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMTExec/ClearTalk.py
@@ -0,0 +1,46 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package Script.PyMongoDB.GMToolLogicProcess.GMTExec.ClearTalk
+#
+# @todo:清聊天缓存
+# @author hxp
+# @date 2026-03-10
+# @version 1.0
+#
+# 详细描述: 清聊天缓存
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2026-03-10 15:00"""
+#-------------------------------------------------------------------------------
+
+def runMyTest(exec_locals):
+    ''' 运行命令函数
+    @param exec_locals: GY_Query_GMTExecfile 模块中的 DoLogic 函数 locals()
+    
+    import 其他模块需要写在此函数里,不然无法引用到
+    '''
+    import GameWorld
+    import ShareDefine
+    import IPY_GameWorld
+    import DBDataMgr
+    
+    cmdInfo = exec_locals["cmdInfo"]
+    #curPlayer = exec_locals.get("curPlayer", None)
+    resultDict = exec_locals["resultDict"] # 建议都进行更新结果字典记录详细处理信息,GY_Query_GMTExecfile 模块会统一写入流向
+    playerID = 0
+    
+    channelType = IPY_GameWorld.tcCountry
+    recTypeIDMgr = DBDataMgr.GetGameRecMgr().GetRecTypeIDMgr(ShareDefine.Def_GameRecType_TalkCache, channelType)
+    clearCount = recTypeIDMgr.GetCount()
+    recTypeIDMgr.DelAllData()
+    resultDict.update({"OK":1, "clearCount":clearCount})
+    
+    GameWorld.Log("GMT_Execfile run %s" % cmdInfo, playerID)
+    return
+
+exec_locals = locals()
+if exec_locals.get("cmdInfo"):
+    runMyTest(exec_locals)
+    
\ No newline at end of file

--
Gitblit v1.8.0