【超值基金】提交
parent
d1bb3391ac
commit
92d47074a4
|
@ -409,9 +409,10 @@ local TypeUpdateFunc = {
|
|||
tempData[j].otherData.State = 1
|
||||
for i = 1, #curData.rewards do
|
||||
if curData.rewards[i].missionId == configData[j].Id then
|
||||
if curData.rewards[i].state == 0 then
|
||||
if curData.rewards[i].state == 0 or
|
||||
curData.rewards[i].state == 1 then
|
||||
tempData[j].otherData.State = 2--可领取
|
||||
elseif curData.rewards[i].state == 1 then
|
||||
elseif curData.rewards[i].state == 2 then
|
||||
tempData[j].otherData.State = 3--已经领取
|
||||
end
|
||||
end
|
||||
|
@ -445,9 +446,10 @@ local TypeUpdateFunc = {
|
|||
tempData[j].otherData.State = 1
|
||||
for i = 1, #curData.rewards do
|
||||
if curData.rewards[i].missionId == configData[j].Id then
|
||||
if curData.rewards[i].state == 0 then
|
||||
if curData.rewards[i].state == 0 or
|
||||
curData.rewards[i].state == 1 then
|
||||
tempData[j].otherData.State = 2--可领取
|
||||
elseif curData.rewards[i].state == 1 then
|
||||
elseif curData.rewards[i].state == 2 then
|
||||
tempData[j].otherData.State = 3--已经领取
|
||||
end
|
||||
end
|
||||
|
@ -819,25 +821,21 @@ end
|
|||
|
||||
function this.ChaoZhiJiJin128Red()
|
||||
local data = this.GetData(ActivityTypeDef.ChaoZhiJiJin_128)
|
||||
for i = 1, #data do
|
||||
if data[i].otherData.State == 2 then
|
||||
LogRed("ChaoZhiJiJin128Red return true")
|
||||
for i = 1, #data.rewards do
|
||||
if data.rewards[i].otherData.State == 2 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
LogRed("ChaoZhiJiJin128Red return false")
|
||||
return false
|
||||
end
|
||||
|
||||
function this.ChaoZhiJiJin328Red()
|
||||
local data = this.GetData(ActivityTypeDef.ChaoZhiJiJin_328)
|
||||
for i = 1, #data do
|
||||
if data[i].otherData.State == 2 then
|
||||
LogGreen("ChaoZhiJiJin328Red return true")
|
||||
for i = 1, #data.rewards do
|
||||
if data.rewards[i].otherData.State == 2 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
LogGreen("ChaoZhiJiJin328Red return false")
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
|
@ -342,9 +342,6 @@ function this.InitRedPointAllRelate()
|
|||
|
||||
--命格
|
||||
RPData:SetParent(RedPointType.Gem,RedPointType.Practice_main)
|
||||
--超值基金
|
||||
RPData:SetParent(RedPointType.jijin328,RedPointType.chaozhijijin)
|
||||
RPData:SetParent(RedPointType.jijin128,RedPointType.chaozhijijin)
|
||||
|
||||
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityGroups)) do
|
||||
if v.RpType > 0 and v.RpTypeParent > 0 then
|
||||
|
@ -610,8 +607,6 @@ function this.RegisterRedCheckFunc()
|
|||
--山河试炼
|
||||
RPData:AddCheckFunc(RedPointType.FightLevelTrial,FightLevelManager.CheckTrialRedPoint)
|
||||
|
||||
RPData:AddCheckFunc(RedPointType.jijin128,ActivityGiftManager.CheckRedpointUpperMonthCard)
|
||||
RPData:AddCheckFunc(RedPointType.jijin328,ActivityGiftManager.CheckRedpointUpperMonthCard)
|
||||
--寻宝迷踪
|
||||
RPData:AddCheckFunc(RedPointType.XunBaoMiZong,DynamicActivityManager.XunBaoMiZongRedCheck)
|
||||
|
||||
|
|
Loading…
Reference in New Issue