From a4cc5ca09eb2b1ccbb40d7db4b45ded8195d0a98 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 27 十一月 2019 16:19:16 +0800 Subject: [PATCH] 8346 【恺英】【后端】协助系统(协助表修改) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyRedPacket.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyRedPacket.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyRedPacket.py index 7264f0b..4693671 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyRedPacket.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyRedPacket.py @@ -253,7 +253,7 @@ 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 @@ -286,7 +286,6 @@ 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) @@ -490,8 +489,6 @@ playerID= curPlayer.GetPlayerID() job = curPlayer.GetJob() - jobRank = PlayerControl.GetJobRank(curPlayer) - job = jobRank * 10 + job playerName = curPlayer.GetName() @@ -638,7 +635,8 @@ 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()]) #已被抢的钱 -- Gitblit v1.8.0