Commit 243bf75beef1fcdd4c9f00778a724aceb1431322
Merge branch 'tr/bugfix-qa' into tr/develop
Showing
2 changed files
with
6 additions
and
7 deletions
Show diff stats
src/actions/ActivityAction.lua
... | ... | @@ -1398,6 +1398,9 @@ function _M.returnerTaskRpc(agent, data) |
1398 | 1398 | local status = returner.status or {} |
1399 | 1399 | if status[taskId] then return 3 end |
1400 | 1400 | |
1401 | + status[taskId] = 1 | |
1402 | + returner.status = status | |
1403 | + | |
1401 | 1404 | local done = true |
1402 | 1405 | for _, data in pairs(TaskCsv) do |
1403 | 1406 | if not status[data.id] then |
... | ... | @@ -1406,15 +1409,12 @@ function _M.returnerTaskRpc(agent, data) |
1406 | 1409 | end |
1407 | 1410 | end |
1408 | 1411 | |
1409 | - status[taskId] = 1 | |
1410 | - returner.status = status | |
1411 | - | |
1412 | - local reward, change = role:award(taskData.reward, {log = {desc = "returner", int1 = taskData.day, int2 = taskId}}) | |
1413 | - | |
1414 | 1412 | if done then |
1415 | 1413 | returner = {} |
1416 | 1414 | end |
1417 | 1415 | |
1416 | + local reward, change = role:award(taskData.reward, {log = {desc = "returner", int1 = taskData.day, int2 = taskId}}) | |
1417 | + | |
1418 | 1418 | local pack = globalCsv.returner_pack:toArray(true,"=") |
1419 | 1419 | if pack[1] == taskData.id then |
1420 | 1420 | role:checkTaskEnter("Appoint", {id = pack[2]}) | ... | ... |
src/models/RoleTimeReset.lua
... | ... | @@ -29,8 +29,7 @@ ResetFunc["CrossDay"] = function(self, notify, response, now) |
29 | 29 | end |
30 | 30 | |
31 | 31 | -- 检查回归者 |
32 | - if (now - ltime) >= 86400 * globalCsv.returner_time then | |
33 | - -- if true then | |
32 | + if ltime ~= 0 and (now - ltime) >= 86400 * globalCsv.returner_time then | |
34 | 33 | self:checkReturner() |
35 | 34 | end |
36 | 35 | ... | ... |