#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Script.PyMongoDB.GMToolLogicProcess.GMTExec.Test
|
#
|
# @todo:²âÊÔÃüÁîÎļþÔËÐÐ
|
# @author hxp
|
# @date 2026-02-13
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ²âÊÔÃüÁîÎļþÔËÐÐ
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2026-02-13 14:30"""
|
#-------------------------------------------------------------------------------
|
|
def runMyTest(exec_locals):
|
''' ÔËÐÐÃüÁÊý
|
@param exec_locals: GY_Query_GMTExecfile Ä£¿éÖÐµÄ DoLogic º¯Êý locals()
|
|
import ÆäËûÄ£¿éÐèҪдÔڴ˺¯ÊýÀ²»È»ÎÞ·¨ÒýÓõ½
|
'''
|
import GameWorld
|
|
cmdInfo = exec_locals["cmdInfo"]
|
curPlayer = exec_locals.get("curPlayer", None)
|
resultDict = exec_locals["resultDict"] # ½¨Òé¶¼½øÐиüнá¹û×Öµä¼Ç¼Ïêϸ´¦ÀíÐÅÏ¢£¬GY_Query_GMTExecfile Ä£¿é»áͳһдÈëÁ÷Ïò
|
playerID = 0
|
|
# ÒÔÏÂΪÏêϸ´¦ÀíÂß¼
|
# Ö¸¶¨Íæ¼ÒµÄÂß¼
|
if curPlayer:
|
playerID = curPlayer.GetPlayerID()
|
resultDict.update({"LV":curPlayer.GetLV(), "PlayerID":curPlayer.GetPlayerID()})
|
|
# ÎÞÍæ¼ÒµÄÂß¼
|
else:
|
resultDict.update({"OK":1})
|
|
GameWorld.Log("GMT_Execfile run %s" % cmdInfo, playerID)
|
return
|
|
exec_locals = locals()
|
if exec_locals.get("cmdInfo"):
|
runMyTest(exec_locals)
|
|