| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.GMT_MediaCard  | 
| #  | 
| # @todo:ýÌ忨  | 
| # @author hxp  | 
| # @date 2017-05-26  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ½±ÀøÓÉÓʼþ·¢·Å£¬ÕâÀïÖ»×ö²»¿ÉÁìÈ¡Ìáʾ  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2017-05-26 14:00"""  | 
| #-------------------------------------------------------------------------------  | 
| #µ¼Èë  | 
| import GMCommon  | 
| import GameWorld  | 
| import ChConfig  | 
| import PlayerControl  | 
| #---------------------------------------------------------------------  | 
|   | 
| ## Ö´ÐÐÂß¼  | 
| #  @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, '')  | 
|     notifyMsg = gmCmdDict.get('notifyMsg', '')  | 
|       | 
|     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  | 
|       | 
|     playerManager = GameWorld.GetPlayerManager()  | 
|     #Ä¿±êÍæ¼Ò  | 
|     tagPlayer = None  | 
|        | 
|     if queryType == ChConfig.queryType_sqtPlayerByAccID:  | 
|         tagPlayer = playerManager.FindPlayerByAccID(playerFind)  | 
|   | 
|     if not tagPlayer:  | 
|         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success)  | 
|         return  | 
|       | 
|     PlayerControl.NotifyCode(tagPlayer, notifyMsg)  | 
|     return GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success)  | 
|   | 
|   | 
|   |