| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GY_Query_ReveiveRecallAward.py  | 
| #  | 
| # @todo: Õٻؽ±Àø  | 
| # @author Alee  | 
| # @date 2011-07-22 15:00  | 
| # @version 1.1  | 
| #  | 
| # ÏêϸÃèÊö:  | 
| # @change: "2011-07-26 11:00" Alee ÁìÈ¡ÎïÆ·ÏµÍ³Ìáʾ  | 
| #------------------------------------------------------------------------------   | 
| """Version = 2011-07-26 11:00"""  | 
| #---------------------------------------------------------------------  | 
| #µ¼Èë  | 
| import PlayerControl  | 
| import ChConfig  | 
| import GameWorld  | 
| import ItemControler  | 
| import IPY_GameWorld  | 
| #---------------------------------------------------------------------  | 
| #È«¾Ö±äÁ¿  | 
| #---------------------------------------------------------------------  | 
|   | 
| #---------------------------------------------------------------------  | 
|   | 
| ## ÇëÇóÂß¼  | 
| #  @param query_Type ÇëÇóÀàÐÍ  | 
| #  @param query_ID ÇëÇóµÄÍæ¼ÒID  | 
| #  @param packCMDList ·¢°üÃüÁî [µÈ¼¶]  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| def DoLogic(query_Type, query_ID, packCMDList, tick):  | 
|   | 
|     curFindPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)  | 
|       | 
|     if not curFindPlayer or curFindPlayer.IsEmpty():  | 
|         return '0'  | 
|       | 
|     flag, itemID, itemCnt = packCMDList  | 
|       | 
|     #°ÑÎïÆ··Åµ½±³°üÖÐ  | 
|     if not ItemControler.GivePlayerItem(curFindPlayer, itemID, itemCnt, True, [IPY_GameWorld.rptItem]):  | 
|         return '0'  | 
|   | 
|     #֪ͨ·ÅÈë±³°üÌØÐ§  | 
|     #curFindPlayer.Sync_GetItemView(itemID, itemCnt)  | 
|     #PlayerControl.NotifyCode(curFindPlayer, "ObtainRes01", [itemID, itemCnt])  | 
|       | 
|     return str(flag)  | 
| #---------------------------------------------------------------------  | 
|   | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
|     return  | 
|   |