【缥缈之旅】没解锁天数完成了任务,礼包显示灰点
parent
803fcee6bf
commit
9c2dee5856
|
@ -1290,8 +1290,9 @@ end
|
||||||
function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
|
function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
|
||||||
if curRewardTaskData then
|
if curRewardTaskData then
|
||||||
local dayNumConFig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,curRewardTaskData.missionId)
|
local dayNumConFig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,curRewardTaskData.missionId)
|
||||||
|
local curServerDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
|
||||||
-- LogYellow(curRewardTaskData.missionId .. " curRewardTaskData.state "..curRewardTaskData.state.." curRewardTaskData.progress "..curRewardTaskData.progress.." JourneyWithWindDayAmount[dayNumConFig.Values[1][2]] "..JourneyWithWindDayAmount[dayNumConFig.Values[1][2]])
|
-- LogYellow(curRewardTaskData.missionId .. " curRewardTaskData.state "..curRewardTaskData.state.." curRewardTaskData.progress "..curRewardTaskData.progress.." JourneyWithWindDayAmount[dayNumConFig.Values[1][2]] "..JourneyWithWindDayAmount[dayNumConFig.Values[1][2]])
|
||||||
if curRewardTaskData.state == 0 and dayNumConFig and curRewardTaskData.progress >= JourneyWithWindDayAmount[dayNumConFig.Values[1][2]] then
|
if curRewardTaskData.state == 0 and dayNumConFig and curServerDay >= dayNumConFig.Values[1][2] and curRewardTaskData.progress >= JourneyWithWindDayAmount[dayNumConFig.Values[1][2]] then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -164,7 +164,7 @@ function this.SingleDayBtnDataShow(_go,data,index)
|
||||||
this.selected.transform.anchoredPosition = Vector3.New(4.3,9.4,0)
|
this.selected.transform.anchoredPosition = Vector3.New(4.3,9.4,0)
|
||||||
ActivityGiftManager.SetJourneyWithWindPlayerPrefs(curDayIndex,1)
|
ActivityGiftManager.SetJourneyWithWindPlayerPrefs(curDayIndex,1)
|
||||||
end
|
end
|
||||||
if activityData then
|
if activityData and curServerDay >= data.Values[1][2] then
|
||||||
for j = 1, #activityData.mission do
|
for j = 1, #activityData.mission do
|
||||||
if activityData.mission[j].missionId == data.Id then
|
if activityData.mission[j].missionId == data.Id then
|
||||||
redState = ActivityGiftManager.SingleJourneyWithWindRewardNoGet(activityData.mission[j])
|
redState = ActivityGiftManager.SingleJourneyWithWindRewardNoGet(activityData.mission[j])
|
||||||
|
|
Loading…
Reference in New Issue