| | |
| | |
|
| | | def CreateSystemRedPacket(redPackID):
|
| | | ## 发放系统红包
|
| | | if IpyGameDataPY.GetFuncCfg("RedPacketClassify", 2):
|
| | | GameWorld.DebugLog("未开放红包发放! redPackID=%s" % redPackID)
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('FamilyRedPack', redPackID)
|
| | | if not ipyData:
|
| | | return
|
| | |
| | | '''外部接口,生成仙盟新红包'''
|
| | | if not family or not playerID or not redPackID:
|
| | | return
|
| | | if IpyGameDataPY.GetFuncCfg("RedPacketClassify", 2):
|
| | | GameWorld.DebugLog("未开放红包发放! redPackID=%s,familyID=%s" % (redPackID, family.GetID()), playerID)
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('FamilyRedPack', redPackID)
|
| | | if not ipyData:
|
| | | return
|