【升级限量礼包】无剩余礼包逻辑缺失修复

dev_chengFeng
ZhangBiao 2021-06-11 14:05:03 +08:00
parent 06875b8986
commit ca9a0199b7
1 changed files with 20 additions and 3 deletions

View File

@ -93,8 +93,8 @@ local TypeUpdateFunc = {
this.GetMissionData(1,ActivityTypeDef.AccumulativeRechargeExper) this.GetMissionData(1,ActivityTypeDef.AccumulativeRechargeExper)
end end
end, end,
[ActivityTypeDef.UpLvAct] = function ()---日累计充值 [ActivityTypeDef.UpLvAct] = function ()---升级限时
this.GetExpertData(2,ActivityTypeDef.UpLvAct) this.GetExpertData(4,ActivityTypeDef.UpLvAct)
end, end,
[ActivityTypeDef.DynamicAct_recharge] = function ()---周累计充值 [ActivityTypeDef.DynamicAct_recharge] = function ()---周累计充值
this.GetMissionData(1,ActivityTypeDef.DynamicAct_recharge) this.GetMissionData(1,ActivityTypeDef.DynamicAct_recharge)
@ -230,7 +230,7 @@ function this.GetExpertData(indexType,actType)
local actRewardConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId", actId) local actRewardConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId", actId)
for i = 1, #curData.rewards do for i = 1, #curData.rewards do
for j = 1, #actRewardConfigs do for j = 1, #actRewardConfigs do
if curData.rewards[i].missionId == actRewardConfigs[j].Id then if curData.rewards[i].missionId == actRewardConfigs[j].Id then
if indexType == 3 then -- 3 积天豪礼 if indexType == 3 then -- 3 积天豪礼
curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[1][2] curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[1][2]
curData.rewards[i].otherData.info = "" curData.rewards[i].otherData.info = ""
@ -241,6 +241,23 @@ function this.GetExpertData(indexType,actType)
else else
curData.rewards[i].otherData.state = 1 curData.rewards[i].otherData.state = 1
end end
elseif indexType == 4 then --升级限量豪礼
curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[2][1]
curData.rewards[i].otherData.info = ""
if curData.rewards[i].state == 1 then
curData.rewards[i].otherData.state = 2
else
if curData.rewards[i].progress > 0 then
if PlayerManager.level >= curData.rewards[i].otherData.Values then
curData.rewards[i].otherData.state = 0
else
curData.rewards[i].otherData.state = 1
end
else
curData.rewards[i].otherData.state = 3
end
curData.rewards[i].otherData.info = string.format("剩余:%s",curData.rewards[i].progress)
end
else --日累计充值 达人 else --日累计充值 达人
if actType == ActivityTypeDef.AccumulativeRechargeExper or actType == ActivityTypeDef.DynamicAct_recharge then if actType == ActivityTypeDef.AccumulativeRechargeExper or actType == ActivityTypeDef.DynamicAct_recharge then
curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[1][1] curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[1][1]