#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.GMT_FreshmanGuide  
 | 
#  
 | 
# @todo:ÐÂÊÖÖ¸µ¼Ô±  
 | 
# @author hxp  
 | 
# @date 2014-02-28  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ÐÂÊÖÖ¸µ¼Ô±  
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
"""Version = 2014-02-28 21:10"""  
 | 
#---------------------------------------------------------------------  
 | 
#µ¼Èë  
 | 
import GMCommon  
 | 
import GameWorld  
 | 
import ChConfig  
 | 
#---------------------------------------------------------------------  
 | 
#È«¾Ö±äÁ¿  
 | 
#---------------------------------------------------------------------  
 | 
"""Version = 2012-08-27 13:59"""  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
  
 | 
## Ö´ÐÐÂß¼  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param gmCmdDict: ÃüÁî×Öµä  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(orderId, gmCmdDict):  
 | 
    queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '')  
 | 
    playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '')  
 | 
    value = GameWorld.ToIntDef(gmCmdDict.get('value', ''))  
 | 
      
 | 
    if queryType == GMCommon.Def_GMKey_PlayerAccID:  
 | 
        queryType = ChConfig.queryType_sqtPlayerByAccID  
 | 
      
 | 
    elif queryType == GMCommon.Def_GMKey_PlayerName:  
 | 
        queryType = ChConfig.queryType_sqtPlayerByName  
 | 
      
 | 
    else:  
 | 
        GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)  
 | 
        return  
 | 
      
 | 
    GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind,  
 | 
                                         gmCmdDict, 'GMTFreshmanGuide', value)  
 | 
    return  
 | 
  
 |