| | |
| | | GameWorld.DebugLog(" 生成新仙盟红包 红包额度不能低于红包个数!outputNum=%s,redCnt=%s" % (outputNum, packetCnt))
|
| | | return
|
| | | job = curPlayer.GetJob()
|
| | | jobRank = PlayerControl.GetJobRank(curPlayer)
|
| | | jobRank = 0
|
| | | playerName = curPlayer.GetName()
|
| | | __SaveNewRedRecord(family, playerID, playerName, job, jobRank, getType, moneyType, outputNum, packetCnt, state, wishStr, data=data)
|
| | | return
|
| | |
| | | def __SaveNewRedRecord(family, ownerid, playerName, job, jobRank, getType, moneyType, outputNum, packetCnt,state=State_NoSend, wishStr='', sysCreateTime=None, data=0):
|
| | | global g_allRecordDict
|
| | | global g_redPackCountDict
|
| | | job = job + jobRank * 10 #个位是job 十位百位是jobrank
|
| | | recordType = ShareDefine.Def_UniversalGameRecType_FamilyRedPacketAllRecord
|
| | | universalRecMgr = GameWorld.GetUniversalRecMgr()
|
| | | recordList = universalRecMgr.GetTypeList(recordType)
|
| | |
| | |
|
| | | playerID= curPlayer.GetPlayerID()
|
| | | job = curPlayer.GetJob()
|
| | | jobRank = PlayerControl.GetJobRank(curPlayer)
|
| | | job = jobRank * 10 + job
|
| | | playerName = curPlayer.GetName()
|
| | |
|
| | |
|
| | |
| | | strValue1 = universalRecData.GetStrValue1()
|
| | | strValue1List = strValue1.split('|')
|
| | | playerID = strValue1List[0]
|
| | | if playerID:
|
| | | getWay = int(strValue1List[3])
|
| | | if playerID and getWay is ShareDefine.RedPackType_GoldPacket:
|
| | | playerID = int(playerID)
|
| | | grabRecordDict = __GetGrabRecord(redPacketID)
|
| | | outNum = sum([a[0] for a in grabRecordDict.values()]) #已被抢的钱
|