【易经宝库】修复查看剩余奖励报错
parent
39b7267239
commit
7e954b997a
|
|
@ -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] = {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue