| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package Player.RemoteQuery.GY_Query_GrabFamilyRedPacketResult  | 
| #  | 
| # @todo:ÇÀÏÉÃ˺ì°ü½á¹û  | 
| # @author xdh  | 
| # @date 2017-09-05  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÇÀÏÉÃ˺ì°ü½á¹û  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2017-09-05 17:30"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import ChConfig  | 
| import PlayerControl  | 
| import PlayerFamilyRedPacket  | 
| import PlayerFeastRedPacket  | 
| import ShareDefine  | 
| import GameWorld  | 
| #---------------------------------------------------------------------  | 
|   | 
|   | 
| #---------------------------------------------------------------------  | 
| #Â߼ʵÏÖ  | 
| ## ÇëÇóÂß¼  | 
| #  @param query_Type ÇëÇóÀàÐÍ  | 
| #  @param query_ID ÇëÇóµÄÍæ¼ÒID  | 
| #  @param packCMDList ·¢°üÃüÁî [ ]  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return "True" or "False" or ""  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoLogic(query_Type, query_ID, packCMDList, tick):  | 
|     return ""  | 
|   | 
| #---------------------------------------------------------------------  | 
| #Ö´Ðнá¹û  | 
| ## Ö´Ðнá¹û  | 
| #  @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò  | 
| #  @param callFunName ¹¦ÄÜÃû³Æ  | 
| #  @param funResult ²éѯµÄ½á¹û  | 
| #  @param tick µ±Ç°Ê±¼ä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def DoResult(curPlayer, callFunName, funResult, tick):  | 
|     moneyType, moneyNum, getWay, isSelf = eval(funResult)  | 
|     #GameWorld.DebugLog("GY_Query_GrabFamilyRedPacketResult moneyType=%s, moneyNum=%s, getWay=%s, isSelf=%s" % (moneyType, moneyNum, getWay, isSelf))  | 
|     if moneyNum:  | 
|         PlayerControl.GiveMoney(curPlayer, moneyType, moneyNum, ChConfig.Def_GiveMoney_RedPacket)  | 
|         if getWay == ShareDefine.RedPackType_OpenServer:  | 
|             PlayerFamilyRedPacket.GrabOSRedPacketResult(curPlayer, moneyNum, isSelf)  | 
|         elif getWay in ShareDefine.FeastRedPackType:  | 
|             PlayerFeastRedPacket.GrabFeastRedPacketResult(curPlayer, moneyNum, getWay, isSelf)  | 
|               | 
|     return  | 
|   | 
|   |