【升级限量礼包】无剩余礼包逻辑缺失修复
parent
06875b8986
commit
ca9a0199b7
|
@ -93,8 +93,8 @@ local TypeUpdateFunc = {
|
|||
this.GetMissionData(1,ActivityTypeDef.AccumulativeRechargeExper)
|
||||
end
|
||||
end,
|
||||
[ActivityTypeDef.UpLvAct] = function ()---日累计充值
|
||||
this.GetExpertData(2,ActivityTypeDef.UpLvAct)
|
||||
[ActivityTypeDef.UpLvAct] = function ()---升级限时
|
||||
this.GetExpertData(4,ActivityTypeDef.UpLvAct)
|
||||
end,
|
||||
[ActivityTypeDef.DynamicAct_recharge] = function ()---周累计充值
|
||||
this.GetMissionData(1,ActivityTypeDef.DynamicAct_recharge)
|
||||
|
@ -241,6 +241,23 @@ function this.GetExpertData(indexType,actType)
|
|||
else
|
||||
curData.rewards[i].otherData.state = 1
|
||||
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 --日累计充值 达人
|
||||
if actType == ActivityTypeDef.AccumulativeRechargeExper or actType == ActivityTypeDef.DynamicAct_recharge then
|
||||
curData.rewards[i].otherData.Values = actRewardConfigs[j].Values[1][1]
|
||||
|
|
Loading…
Reference in New Issue