This commit is contained in:
puxuan 2025-09-26 09:44:16 +08:00
parent 6546675a6f
commit 6dd035ced6
3 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ function ActSevenDayData:addTaskProgress(taskType, count)
-- addCount = 0
-- end
-- end
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
serverData.progress = math.max(serverData.progress, addCount)
else
if serverData.progress <= math.maxinteger - addCount then -- 检查一下是否相加会溢出

View File

@ -493,7 +493,7 @@ function ActSprintSummonData:addTaskProgress(taskType, progress)
end
for _, taskId in ipairs(normalList) do
if self:getActTaskType(taskId) == taskType then
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
-- 特别处理升星
if taskType == GConst.TaskConst.TASK_TYPE.HERO_LEGEND_STAR_UP_TO then
if self:getActTaskNum(taskId) < progress and progress <= self:getActTaskNumber1(taskId) then

View File

@ -186,7 +186,7 @@ function ActivityData:addTaskProgress(actId, taskId, count)
if not self:isTaskFinished(actId, taskId) then
local taskType = self:getTaskType(taskId)
local data = self:getTaskData(actId, taskId)
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
data.progress = math.max(data.progress or 0, count)
else
data.progress = (data.progress or 0) + count