【易经宝库】修复查看剩余奖励报错

dev_chengFeng
gaoxin 2021-09-18 15:15:22 +08:00
parent 39b7267239
commit 7e954b997a
2 changed files with 3 additions and 2 deletions

View File

@ -221,6 +221,7 @@ function this.GetBaoKuData()
if v.missionId == 100 then
actData.curLevel = v.progress
curBasicPool = tonumber(BasicPoolId[v.progress])
actData.poolId = curBasicPool
curFinalPool = BlessingConfigNew.FinalPoolId
elseif v.missionId > 1000 then
local data = {}
@ -271,7 +272,7 @@ end
function this.GetLeftRewardData()
local actData = this.GetBaoKuData()
local finalCardDatas = actData.finalCardDatas
local RewardConfig = ConfigManager.GetAllConfigsDataByKey(ConfigName.BlessingRewardPoolNew,"PoolId",actData.curLevel)--初始所有奖励数据
local RewardConfig = ConfigManager.GetAllConfigsDataByKey(ConfigName.BlessingRewardPoolNew,"PoolId",actData.poolId)--初始所有奖励数据
local data={}
for i = 1, #RewardConfig do
data[RewardConfig[i].Id] = {}

View File

@ -81,7 +81,7 @@ function this:OnShow(_parent,...)
table.insert(tempData,value)
end
this.ScrollView:SetData(tempData, function(index, go)
this:SetSingleData(index,go,leftRewardData[index + (ActData.curLevel-1)*10])
this:SetSingleData(index,go,leftRewardData[index + (ActData.poolId-1)*10])
end)
end