hxp
2026-03-10 7030d1235dc9f730142506aadd66682a01857fed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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)