This commit is contained in:
chenxi 2023-05-11 21:33:48 +08:00
parent 4e95b11e21
commit 57bf9204c1

View File

@ -38,8 +38,7 @@ function DailyTaskData:init(data)
} }
if v.bounty then if v.bounty then
dailyTaskObj.lock = true dailyTaskObj.lock = true
end else -- 只有解锁的任务才注册监听任务进度
self.dailyTasks[k] = dailyTaskObj
local list = self.taskTypeMap[taskInfo.type] local list = self.taskTypeMap[taskInfo.type]
if list == nil then if list == nil then
list = {} list = {}
@ -50,6 +49,8 @@ function DailyTaskData:init(data)
self:registerTask(taskInfo.type) self:registerTask(taskInfo.type)
end end
end end
self.dailyTasks[k] = dailyTaskObj
end
end end
end end