#!/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 IpyGameDataPY  
 | 
import PlayerFamilyRedPacket  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
  
 | 
#---------------------------------------------------------------------  
 | 
#Â߼ʵÏÖ  
 | 
## ÇëÇóÂß¼  
 | 
#  @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):  
 | 
    #GameWorld.DebugLog("GY_Query_GrabFamilyRedPacketResult funResult=%s" % funResult)  
 | 
    moneyType, moneyNum, getWay, isSelf = eval(funResult)  
 | 
    if moneyNum:  
 | 
        PlayerControl.GiveMoney(curPlayer, moneyType, moneyNum, ChConfig.Def_GiveMoney_RedPacket)  
 | 
        if getWay == IpyGameDataPY.GetFuncCfg('OpenServerRedPacketType'):  
 | 
            PlayerFamilyRedPacket.GrabOSRedPacketResult(curPlayer, moneyNum, isSelf)  
 | 
              
 | 
    return  
 | 
  
 | 
  
 |