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
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package Script.Player.RemoteQuery.GMTExec.Test
#
# @todo:²âÊÔÃüÁîÎļþÔËÐÐ
# @author hxp
# @date 2021-05-19
# @version 1.0
#
# ÏêϸÃèÊö: ²âÊÔÃüÁîÎļþÔËÐÐ
#
#-------------------------------------------------------------------------------
#"""Version = 2021-05-19 11:00"""
#-------------------------------------------------------------------------------
 
 
def runMyTest(exec_locals):
    ''' ÔËÐÐÃüÁÊý
    @param exec_locals: GY_Query_GMTExecfile Ä£¿éÖеĠDoLogic º¯Êý locals()
    
    import ÆäËûÄ£¿éÐèҪдÔڴ˺¯ÊýÀ²»È»ÎÞ·¨ÒýÓõ½
    '''
    import GameWorld
    
    orderId = exec_locals["orderId"]
    cmdInfo = exec_locals["cmdInfo"]
    curPlayer = exec_locals["curPlayer"]
    resultDict = exec_locals["resultDict"] # ½¨Òé¶¼½øÐиüнá¹û×Öµä¼Ç¼Ïêϸ´¦ÀíÐÅÏ¢£¬GY_Query_GMTExecfile Ä£¿é»áͳһдÈëÁ÷Ïò
    
    # ÒÔÏÂΪÏêϸ´¦ÀíÂß¼­
    
    GameWorld.Log("This is MameServer GMT_Execfile run %s. orderId=%s" % (cmdInfo, orderId), curPlayer.GetPlayerID())
    resultDict.update({"LV":curPlayer.GetLV(), "PlayerID":curPlayer.GetPlayerID()})
    return
 
exec_locals = locals()
if exec_locals.get("cmdInfo"):
    runMyTest(exec_locals)