From 0e2a25b6e5c9935cd80e937c4c8eb393c527bd20 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 07 五月 2019 19:59:00 +0800 Subject: [PATCH] 860312 数据库操作函数更改 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/OpenServerCampaign.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/OpenServerCampaign.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/OpenServerCampaign.py index 2b9eb86..0a67be3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/OpenServerCampaign.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/OpenServerCampaign.py @@ -276,6 +276,8 @@ order = queryResultList[i] billAwardInfo = None billRankAwardIpyList = IpyGameDataPY.GetIpyGameDataList("OSCBillRankAward", campaignType) + if not billRankAwardIpyList: + continue for billRankIpyData in billRankAwardIpyList: if (billRankIpyData.GetRankA() <= order <= billRankIpyData.GetRankB()) \ or (not billRankIpyData.GetRankB() and billRankIpyData.GetRankA() == order): @@ -332,7 +334,7 @@ for itemInfo in giveItemList: itemID, itemCount = itemInfo[:2] isBind = itemInfo[2] if len(itemInfo) > 2 else 1 - ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem], + ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], event=[ChConfig.ItemGive_OpenServerCampaign, True, drDict]) return -- Gitblit v1.8.0