From aecf8422a914350ccbf779178a1fdc1acc8971c7 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 11 三月 2019 16:27:41 +0800 Subject: [PATCH] 6341 【后端】【2.0】境界改版开发单 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py index dea11ce..33fe2a7 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_AllFamilyBoss.py @@ -380,6 +380,7 @@ if isPass: worldLV = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv) familyAuctionItemDict = {} #{仙盟ID:[[享受收益的成员ID, ...], [[拍品ID,总个数,拍品组数], ...]], ...} + batchPlayerIDList, batchAddItemList, batchParamList, batchDetailList = [], [], [], [] event=["AllFamilyBoss", False, {}] needMemberCnt = IpyGameDataPY.GetFuncCfg('LeagueBOSSNumber1') for rank, hurtInfo in enumerate(playerHurtList, 1): @@ -395,6 +396,7 @@ FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(menberItemList), 'AuctionItem':FBCommon.GetJsonItemList(familyAuctionItemList), 'memberCnt':len(memberIDList)} + mailPlayerIDList = [] for memberID in memberIDList: member = playerManager.FindPlayerByID(memberID) if member: @@ -402,7 +404,15 @@ member.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True) FBCommon.NotifyFBOver(member, ChConfig.Def_FBMapID_AllFamilyBoss, lineID, isPass, overDict) else: - PlayerControl.SendMailByKey('LeagueBOSS2', [memberID], menberItemList) + mailPlayerIDList.append(memberID) + if mailPlayerIDList: + batchPlayerIDList.append(mailPlayerIDList) + batchAddItemList.append(menberItemList) + batchParamList.append([]) + batchDetailList.append({'rank':rank}) + + if batchPlayerIDList: + PlayerControl.SendMailBatch("LeagueBOSS2", batchPlayerIDList, batchAddItemList, batchParamList, batchDetail=batchDetailList) if familyAuctionItemDict: GameWorld.Log('familyAuctionItemDict=%s'%familyAuctionItemDict) PlayerAuctionHouse.DoAddFamilyAuctionItem(familyAuctionItemDict) -- Gitblit v1.8.0